astyle tmd710.c

pull/1097/head
Mike Black W9MDB 2022-07-28 10:34:01 -05:00
rodzic 15f54ccab5
commit be3865693a
1 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -663,7 +663,8 @@ static int tmd710_open(RIG *rig)
tmd710_get_vfo(rig, &vfo); tmd710_get_vfo(rig, &vfo);
tmd710_get_split_vfo(rig, RIG_VFO_CURR, &split, &vfo); tmd710_get_split_vfo(rig, RIG_VFO_CURR, &split, &vfo);
rig_debug(RIG_DEBUG_TRACE, "rig->state.tx_vfo: %s\n", rig_strvfo(rig->state.tx_vfo)); rig_debug(RIG_DEBUG_TRACE, "rig->state.tx_vfo: %s\n",
rig_strvfo(rig->state.tx_vfo));
return 0; return 0;
} }
@ -2010,6 +2011,7 @@ int tmd710_set_split_vfo(RIG *rig, vfo_t vfo, split_t split, vfo_t txvfo)
rig_strvfo(vfo), rig_strvfo(txvfo)); rig_strvfo(vfo), rig_strvfo(txvfo));
retval = tmd710_get_vfo_num(rig, &ctrl_vfo_index, NULL); retval = tmd710_get_vfo_num(rig, &ctrl_vfo_index, NULL);
if (retval != RIG_OK) if (retval != RIG_OK)
{ {
return retval; return retval;
@ -2061,7 +2063,8 @@ int tmd710_get_split_vfo(RIG *rig, vfo_t vfo, split_t *split, vfo_t *txvfo)
rig->state.tx_vfo = *txvfo; rig->state.tx_vfo = *txvfo;
// Rig is always in "split mode" and VFOs are targetable, so simply check current and TX VFOs // Rig is always in "split mode" and VFOs are targetable, so simply check current and TX VFOs
*split = rig->state.current_vfo == rig->state.tx_vfo ? RIG_SPLIT_OFF : RIG_SPLIT_ON; *split = rig->state.current_vfo == rig->state.tx_vfo ? RIG_SPLIT_OFF :
RIG_SPLIT_ON;
return RIG_OK; return RIG_OK;
} }