fix(omnirig): a Yaesu in split tunes both VFOs to the spot
The generic Freq write lands on the TX VFO when split is engaged: an FT-2000 moved B and left A — the receiver — behind, so a spot click QSYed the transmitter and nothing audible changed; without split the same write moved A. With split on (and the operator on MAIN), FreqA and FreqB are both written, so the radio arrives on the spot whole, split left as the operator had it.
This commit is contained in:
@@ -553,6 +553,13 @@ func (o *OmniRig) SetFrequency(hz int64) error {
|
||||
props := []string{prop, "Freq"}
|
||||
if onSubVFO {
|
||||
props = []string{prop}
|
||||
} else if isYaesu && split&pmSplitOn != 0 && split&pmSplitOff == 0 {
|
||||
// Yaesu with SPLIT engaged: the generic Freq write lands on the TX
|
||||
// VFO — an FT-2000 moved B and left A (the receiver) behind, so a
|
||||
// spot click QSYed the transmitter and nothing audible changed.
|
||||
// Both VFOs are written: the radio arrives on the spot RX and TX
|
||||
// together, split left as the operator had it.
|
||||
props = []string{"FreqA", "FreqB", "Freq"}
|
||||
}
|
||||
for _, p := range props {
|
||||
if _, e := oleutil.PutProperty(o.rig, p, hz32); e != nil {
|
||||
|
||||
Reference in New Issue
Block a user