Remove range_list2 from newcat.c

pull/224/head
Michael Black 2020-03-06 22:18:06 -06:00
rodzic 086e3ae9da
commit 830d218731
2 zmienionych plików z 6 dodań i 7 usunięć

Wyświetl plik

@ -523,14 +523,13 @@ int newcat_set_freq(RIG *rig, vfo_t vfo, freq_t freq)
rig_debug(RIG_DEBUG_TRACE, "%s: passed freq = %"PRIfreq" Hz\n", __func__, freq); rig_debug(RIG_DEBUG_TRACE, "%s: passed freq = %"PRIfreq" Hz\n", __func__, freq);
/* additional debugging */ /* additional debugging */
rig_debug(RIG_DEBUG_TRACE, "%s: R2 minimum freq = %"PRIfreq" Hz\n", __func__, rig_debug(RIG_DEBUG_TRACE, "%s: minimum freq = %"PRIfreq" Hz\n", __func__,
caps->rx_range_list2[0].startf); caps->rx_range_list1[0].startf);
rig_debug(RIG_DEBUG_TRACE, "%s: R2 maximum freq = %"PRIfreq" Hz\n", __func__, rig_debug(RIG_DEBUG_TRACE, "%s: maximum freq = %"PRIfreq" Hz\n", __func__,
caps->rx_range_list2[0].endf); caps->rx_range_list1[0].endf);
if (freq < caps->rx_range_list1[0].startf if (freq < caps->rx_range_list1[0].startf
|| freq > caps->rx_range_list1[0].endf || || freq > caps->rx_range_list1[0].endf)
freq < caps->rx_range_list2[0].startf || freq > caps->rx_range_list2[0].endf)
{ {
return -RIG_EINVAL; return -RIG_EINVAL;
} }

Wyświetl plik

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