From a29eb33e6e1b2c29f4bfce5ea8e74a8435504c0b Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Wed, 2 Aug 2023 23:03:30 -0500 Subject: [PATCH] Fix cppcheck error discovery --- rigs/dummy/netrigctl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rigs/dummy/netrigctl.c b/rigs/dummy/netrigctl.c index 823ec1014..e56c2a556 100644 --- a/rigs/dummy/netrigctl.c +++ b/rigs/dummy/netrigctl.c @@ -2128,7 +2128,7 @@ static int netrigctl_get_powerstat(RIG *rig, powerstat_t *status) // a return of 1 should indicate there is no powerstat command available // so we fake the ON status // also a problem with Flex 6xxx and Log4OM not working due to lack of PS command - if (ret != RIG_ETIMEOUT) + if (ret != -RIG_ETIMEOUT) { rig_debug(RIG_DEBUG_VERBOSE, "%s: PS command failed (ret=%d) so returning RIG_POWER_ON\n", __func__, ret); @@ -2809,7 +2809,7 @@ struct rig_caps netrigctl_caps = RIG_MODEL(RIG_MODEL_NETRIGCTL), .model_name = "NET rigctl", .mfg_name = "Hamlib", - .version = "20230617.0", + .version = "20230802.0", .copyright = "LGPL", .status = RIG_STATUS_STABLE, .rig_type = RIG_TYPE_OTHER,