Add vfo_fixup to rig_set_vfo

https://github.com/Hamlib/Hamlib/issues/665
pull/668/head
Mike Black W9MDB 2021-04-15 17:19:42 -05:00
rodzic a1f5d4f5e3
commit 1bd795e297
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -2495,6 +2495,8 @@ int HAMLIB_API rig_set_vfo(RIG *rig, vfo_t vfo)
RETURNFUNC(-RIG_EIO);
}
vfo = vfo_fixup(rig, vfo);
if (vfo == RIG_VFO_CURR) { RETURNFUNC(RIG_OK); }
// make sure we are asking for a VFO that the rig actually has