kopia lustrzana https://github.com/Hamlib/Hamlib
Ensure get_powerstat return RIG_OK when rig does not have get_powerstat
https://github.com/Hamlib/Hamlib/issues/1189pull/1215/head
rodzic
9970a2767d
commit
b1828d951a
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue