Ensure get_powerstat return RIG_OK when rig does not have get_powerstat

https://github.com/Hamlib/Hamlib/issues/1189
pull/1215/head
Mike Black W9MDB 2022-12-17 17:23:52 -06:00
rodzic 9970a2767d
commit b1828d951a
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -6032,7 +6032,7 @@ int HAMLIB_API rig_get_powerstat(RIG *rig, powerstat_t *status)
if (rig->caps->get_powerstat == NULL)
{
*status = RIG_POWER_ON; // default to power if not available
RETURNFUNC(-RIG_ENAVAIL);
RETURNFUNC(RIG_OK);
}
*status = RIG_POWER_OFF; // default now to power off until proven otherwise in get_powerstat