Add retry of PS1 during power on sequencing in newcat.c

https://github.com/Hamlib/Hamlib/issues/579
pull/608/head
Michael Black W9MDB 2021-03-08 12:06:48 -06:00
rodzic 7286c1ac86
commit ac18671029
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -3153,7 +3153,6 @@ int newcat_set_powerstat(RIG *rig, powerstat_t status)
case RIG_POWER_OFF:
case RIG_POWER_STANDBY:
ps = '0';
write_block(&state->rigport, "\n", 0);
break;
default:
@ -3182,6 +3181,8 @@ int newcat_set_powerstat(RIG *rig, powerstat_t status)
}
rig_debug(RIG_DEBUG_TRACE, "%s: Wait #%d for power up\n", __func__, i + 1);
retval = write_block(&state->rigport, priv->cmd_str, strlen(priv->cmd_str));
if (retval != RIG_OK) RETURNFUNC(retval);
}
}