Make elecraft rigs set_vfo to VFO_A if get_vfo is not A or B

https://github.com/Hamlib/Hamlib/issues/563
pull/574/head
Michael Black W9MDB 2021-02-27 22:30:10 -06:00
rodzic 692e562e66
commit 126e27dc91
1 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -283,6 +283,14 @@ int elecraft_open(RIG *rig)
it's not supported */
}
// For rigs like K3X vfo emulation need to set VFO_A to start
vfo_t vfo;
rig_get_vfo(rig, &vfo);
if (vfo != RIG_VFO_A && vfo != RIG_VFO_B)
{
rig_set_vfo(rig, RIG_VFO_A);
}
return RIG_OK;
}