fix: clicking an OpsLog spot on the Flex panadapter now sets the mode too — cluster spots get a mode inferred (comment/band plan) and SendSpot converts it to a real Flex mode (SSB->USB/LSB, FT8->DIGU), so SmartSDR actually switches mode on the click; changelog 0.20.10

This commit is contained in:
2026-07-22 20:36:29 +02:00
parent 64b8ba7fdc
commit 6b04072e52
3 changed files with 20 additions and 2 deletions
+5 -1
View File
@@ -6484,11 +6484,15 @@ func (a *App) clusterEventWorker() {
}
// Fire any matching alert rules (sound / visual / e-mail).
a.evaluateAlerts(s)
// Mirror the spot onto the FlexRadio panadapter when enabled.
// Mirror the spot onto the FlexRadio panadapter when enabled. Infer the
// mode (from the comment, else the band plan) so clicking the spot on the
// panadapter tunes AND switches mode — a DX cluster line carries no mode,
// so without this the radio only moved frequency.
if a.catFlexSpots && a.cat != nil {
a.cat.SendSpot(cat.SpotInfo{
FreqHz: s.FreqHz,
Callsign: s.DXCall,
Mode: alerts.InferMode(s.Comment, s.FreqHz),
Comment: s.Comment,
})
}