Close rig on set_powerstat 0 -- Linux was unable to reconnect to IC-7300

https://github.com/Hamlib/Hamlib/issues/1212
pull/1215/head
Mike Black W9MDB 2023-01-08 16:48:35 -06:00
rodzic 57522f0b93
commit 93e3aec588
2 zmienionych plików z 4 dodań i 0 usunięć

1
NEWS
Wyświetl plik

@ -26,6 +26,7 @@ Version 4.6
Version 4.5.4
* 2023-XX-XX
* Fix set_powerstat 0 to reopen with IC-7300 (and others?) on Linux
* Fix FT-710 usage on 60M
* Fix timing on NRD-535D
* Fix AGC levels with rigctld

Wyświetl plik

@ -6014,6 +6014,9 @@ int HAMLIB_API rig_set_powerstat(RIG *rig, powerstat_t status)
HAMLIB_TRACE;
retcode = rig->caps->set_powerstat(rig, status);
rig_flush(&rig->state.rigport); // if anything is queued up flush it
if (status == RIG_POWER_OFF) { rig_close(rig); }
RETURNFUNC(retcode);
}