fix ptt and apply astyle

pull/19/head
Sebastian Denz 2018-11-21 22:39:33 +01:00
rodzic cc06bbe52a
commit 4a9725493a
1 zmienionych plików z 19 dodań i 9 usunięć

Wyświetl plik

@ -781,14 +781,24 @@ int thd74_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt)
rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__);
if (!rig)
{
return -RIG_EINVAL;
}
switch (ptt)
{
case RIG_PTT_ON:
ptt_cmd = "TX";
return kenwood_simple_transaction(rig, ptt_cmd, 4);
break;
case RIG_PTT_OFF:
ptt_cmd = "RX";
return kenwood_simple_transaction(rig, ptt_cmd, 2);
break;
switch (ptt) {
case RIG_PTT_ON: ptt_cmd = "TX"; break;
case RIG_PTT_OFF: ptt_cmd = "RX"; break;
default: return -RIG_EINVAL;
}
return kenwood_transaction(rig, ptt_cmd, NULL, 0);
}
static int thd74_set_level(RIG *rig, vfo_t vfo, setting_t level, value_t val)