From 74aba61978699a5cd4f5bd92859e86c16d4b5d39 Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Fri, 15 Jul 2022 16:09:49 -0500 Subject: [PATCH] Default rig_get_powerstat to RIG_POWER_ON when function is not available https://github.com/Hamlib/Hamlib/issues/1085# Please enter the commit message for your changes. Lines starting --- src/rig.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rig.c b/src/rig.c index 6f81f0c3b..9bc5cfec9 100644 --- a/src/rig.c +++ b/src/rig.c @@ -5792,6 +5792,7 @@ int HAMLIB_API rig_get_powerstat(RIG *rig, powerstat_t *status) if (CHECK_RIG_ARG(rig)) { + *status = RIG_POWER_ON; // default to power on if not available RETURNFUNC(-RIG_EINVAL); }