Cover more cases for detecting rig power

pull/1322/head
Mike Black W9MDB 2023-06-20 17:32:16 -05:00
rodzic e9d0320111
commit 5c3f26cc56
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -1733,7 +1733,7 @@ readline_repeat:
else
{
// Allow only certain commands when the rig is powered off
if ((rig_powerstat == RIG_POWER_OFF || rig_powerstat == RIG_POWER_STANDBY)
if (my_rig->state.powerstat == RIG_POWER_OFF && (rig_powerstat == RIG_POWER_OFF || rig_powerstat == RIG_POWER_STANDBY)
&& cmd_entry->cmd != '1' // dump_caps
&& cmd_entry->cmd != '3' // dump_conf
&& cmd_entry->cmd != 0x8f // dump_state