Fix ts480.c to expect return from RX command when not in PTT

pull/133/head
Michael Black 2019-09-30 08:59:01 -05:00
rodzic f9c9001d6c
commit 7bdae11b56
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6599353EC683404D
1 zmienionych plików z 9 dodań i 0 usunięć

Wyświetl plik

@ -2674,6 +2674,15 @@ int kenwood_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt)
case RIG_PTT_OFF: ptt_cmd = "RX"; break;
default: return -RIG_EINVAL;
}
if (ptt == RIG_PTT_OFF && RIG_MODEL_TS480 == rig->caps->rig_model) {
/* if not in PTT TS-480 will return RX0; */
char ackbuf[8];
ptt_t ptttmp;
int err = kenwood_get_ptt(rig, vfo, &ptttmp);
if (err != RIG_OK)
return err;
if (!ptt) return kenwood_transaction(rig, ptt_cmd, ackbuf, sizeof(ackbuf));
}
return kenwood_transaction(rig, ptt_cmd, NULL, 0);
}