Fix auto_power_on with netrigctl when powered off but still responding to PS; command

https://github.com/Hamlib/Hamlib/issues/1282
pull/1289/head
Mike Black W9MDB 2023-04-29 16:13:48 -05:00
rodzic 3f7cf2d0b3
commit fdf1c3cdab
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -6132,6 +6132,8 @@ int HAMLIB_API rig_get_powerstat(RIG *rig, powerstat_t *status)
if (retcode != RIG_OK) { *status = RIG_POWER_ON; } // if failed assume power is on
if (*status == RIG_POWER_OFF && rig->state.auto_power_on) rig->caps->set_powerstat(rig, RIG_POWER_ON);
RETURNFUNC(retcode);
}