IC7300 cannot get powerstat so use get_freq instead. There are likely more Icom rigs like this

pull/1137/head
Mike Black W9MDB 2022-11-01 14:51:47 -05:00
rodzic 790bf7704c
commit b2cf596b54
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -8001,6 +8001,12 @@ int icom_get_powerstat(RIG *rig, powerstat_t *status)
*status = ((ack_len == 6) && (ackbuf[0] == C_CTL_MEM)) ?
RIG_POWER_ON : RIG_POWER_OFF;
}
if (rig->caps->rig_model == RIG_MODEL_IC7300)
{
freq_t freq;
int retval = rig_get_freq(rig, RIG_VFO_A, &freq);
return retval;
}
else
{
retval = icom_transaction(rig, C_SET_PWR, -1, NULL, 0,