style(icom): the shared LED meters, and the sideband named
The console's thin home-made bars were the one holdout — every other panel (Flex, Elecraft, the amps, the tuner) draws the same MeterBar. And the mode badge said SSB, which on any band leaves the operator guessing which sideband the rig is on: the panel now shows USB or LSB (the log keeps ADIF's SSB).
This commit is contained in:
@@ -422,6 +422,19 @@ func (b *IcomSerial) ReadState() (RigState, error) {
|
||||
}
|
||||
b.dspMu.Lock()
|
||||
b.dsp.Mode = s.Mode
|
||||
// The console says which SIDEBAND, not the ADIF family: "SSB" on 40 m
|
||||
// leaves the operator guessing whether the rig is where convention puts
|
||||
// it. The log keeps SSB; the panel shows what the radio is actually doing.
|
||||
switch b.curModeByte {
|
||||
case civ.ModeUSB:
|
||||
if s.Mode == "SSB" {
|
||||
b.dsp.Mode = "USB"
|
||||
}
|
||||
case civ.ModeLSB:
|
||||
if s.Mode == "SSB" {
|
||||
b.dsp.Mode = "LSB"
|
||||
}
|
||||
}
|
||||
b.dspMu.Unlock()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user