Make Malachite do 2-freq set all the time -- seems to work well

https://github.com/Hamlib/Hamlib/issues/645
pull/649/head
Mike Black W9MDB 2021-04-06 17:38:59 -05:00
rodzic 993a3162fd
commit bddf868414
1 zmienionych plików z 5 dodań i 7 usunięć

Wyświetl plik

@ -948,15 +948,13 @@ int malachite_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
{
int retval;
// Malachite has bug on VHF and up where it takes two freq set to make it work
if (freq > 100e6)
{
retval = kenwood_set_freq(rig, vfo, freq + 1);
// Malachite has a bug where it takes two freq set to make it work
// under some band changes -- so we just do this all the time
retval = kenwood_set_freq(rig, vfo, freq + 1);
if (retval != RIG_OK) { RETURNFUNC(retval); }
if (retval != RIG_OK) { RETURNFUNC(retval); }
retval = kenwood_set_freq(rig, vfo, freq);
}
retval = kenwood_set_freq(rig, vfo, freq);
RETURNFUNC(retval);
}