Assume rig is powered on if get_powerstat is not implemented

pull/1354/head
Mike Black W9MDB 2023-07-30 07:25:57 -05:00
rodzic 21c5c3f419
commit b4ddf64b31
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -6270,6 +6270,7 @@ int HAMLIB_API rig_set_powerstat(RIG *rig, powerstat_t status)
if (rig->caps->set_powerstat == NULL)
{
rig_debug(RIG_DEBUG_WARN, "%s set_powerstat not implemented\n", __func__);
rig->state.powerstat = RIG_POWER_ON; // assume we are on if we can't set_powerstat
RETURNFUNC(-RIG_ENAVAIL);
}