Fix newcat error on VFO/Main/Sub issue#395

pull/412/head
Michael Black W9MDB 2020-10-10 14:51:59 +00:00
rodzic 32b7063801
commit 985a7b3ded
2 zmienionych plików z 3 dodań i 4 usunięć

Wyświetl plik

@ -5135,7 +5135,6 @@ int newcat_get_tx_vfo(RIG *rig, vfo_t *tx_vfo)
}
snprintf(priv->cmd_str, sizeof(priv->cmd_str), "%s%c", command, cat_term);
rig_debug(RIG_DEBUG_TRACE, "cmd_str = %s\n", priv->cmd_str);
/* Get TX VFO */
if (RIG_OK != (err = newcat_get_cmd(rig)))
@ -5148,14 +5147,14 @@ int newcat_get_tx_vfo(RIG *rig, vfo_t *tx_vfo)
switch (c)
{
case '0':
if (rig->state.vfo_list && RIG_VFO_MAIN) { *tx_vfo = RIG_VFO_MAIN; }
if ((rig->state.vfo_list & RIG_VFO_MAIN) == RIG_VFO_MAIN) { *tx_vfo = RIG_VFO_MAIN; }
else { *tx_vfo = RIG_VFO_A; }
rig->state.cache.split = 0;
break;
case '1' :
if (rig->state.vfo_list && RIG_VFO_SUB) { *tx_vfo = RIG_VFO_SUB; }
if ((rig->state.vfo_list & RIG_VFO_SUB) == RIG_VFO_SUB) { *tx_vfo = RIG_VFO_SUB; }
else { *tx_vfo = RIG_VFO_B; }
rig->state.cache.split = 1;

Wyświetl plik

@ -50,7 +50,7 @@
typedef char ncboolean;
/* shared function version */
#define NEWCAT_VER "20201009"
#define NEWCAT_VER "20201010"
/* Hopefully large enough for future use, 128 chars plus '\0' */
#define NEWCAT_DATA_LEN 129