Fix get_powerstat call when get_powerstat is not defined

https://github.com/Hamlib/Hamlib/issues/1217
pull/1242/head
Mike Black W9MDB 2023-01-13 17:30:55 -06:00
rodzic 9c48ec785c
commit 29a80fb496
2 zmienionych plików z 2 dodań i 1 usunięć

1
NEWS
Wyświetl plik

@ -25,6 +25,7 @@ Version 4.6
* Fix FTDX3000 rig split
Version 4.5.5
* Fix get_powerstat bad call in rigctl_parse.c
* Really fix CM108 ptt_bitnum usage
* Fix Elecraft power2mW precision/accuracy
* Fix power on/off/on for Icom rigs with rigctld power_on=0

Wyświetl plik

@ -1731,7 +1731,7 @@ readline_repeat:
else
{
if (my_rig->caps->set_powerstat && (rig_powerstat == RIG_POWER_OFF
if (my_rig->caps->get_powerstat && (rig_powerstat == RIG_POWER_OFF
|| rig_powerstat == RIG_POWER_STANDBY))
{
// Update power status