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:
@@ -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,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user