Fix incorrect swap of main and subband in IC-910

Per tracker bug report:

https://sourceforge.net/tracker/?func=detail&atid=108305&aid=3480533&group_id=8305

When the actual used frequency lies in the same band like the one you
want to set, the main- and subband are swaped.  Definitely not the
wanted behyvior. -- from ArkturusMensk
Hamlib-1.2.15
Nate Bargmann 2012-01-27 19:13:20 -06:00
rodzic 8fc10c6389
commit ea0a9300a2
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -169,7 +169,7 @@ static int ic910_set_freq(RIG* rig, vfo_t vfo, freq_t freq)
if (retval!=RIG_OK) return retval;
}
if (compareFrequencies(rig, freq, otherfreq))
if (compareFrequencies(rig, freq, otherfreq) == 0)
icom_swap_bands(rig);
icom_set_vfo(rig, vfo);