Change rig.c to use some sensible defaults when rig_get_vfo fails

https://github.com/Hamlib/Hamlib/issues/274
pull/281/head
Michael Black W9MDB 2020-06-01 14:08:45 -05:00
rodzic 79fdfe8425
commit e49f1a9df9
1 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -925,6 +925,11 @@ int HAMLIB_API rig_open(RIG *rig)
{
rs->tx_vfo = rs->current_vfo;
}
else // vfo fails so set some sensible defaults
{
rs->current_vfo = RIG_VFO_CURR;
rs->tx_vfo = RIG_VFO_TX;
}
// try to turn off the screensaver if possible
// don't care about the return here...it's just a nice-to-have