Fix cppcheck error discovery

pull/1354/head
Mike Black W9MDB 2023-08-02 23:03:30 -05:00
rodzic 321f3f8ab4
commit a29eb33e6e
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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,