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:
2026-08-30 03:00:58 +02:00
parent dad762a0f1
commit 605c934d33
3 changed files with 39 additions and 10 deletions
+13
View File
@@ -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()
}