astyle icom.h and update icom date

pull/1649/head
Michael Black W9MDB 2024-12-03 15:32:08 -06:00
rodzic 3e0a9eeae7
commit 8f0e9909da
2 zmienionych plików z 8 dodań i 4 usunięć

Wyświetl plik

@ -2110,7 +2110,9 @@ pbwidth_t icom_get_dsp_flt(RIG *rig, rmode_t mode)
RIG_MODE_RTTYR | RIG_MODE_PKTUSB | RIG_MODE_PKTLSB))
{
rig_debug(RIG_DEBUG_TRACE, "%s: using filtericom width=%d\n", __func__, i);
if (i > sizeof(filtericom)/sizeof(int)) i = 40;
if (i > sizeof(filtericom) / sizeof(int)) { i = 40; }
RETURNFUNC2(filtericom[i]);
}
}
@ -2181,7 +2183,8 @@ int icom_set_dsp_flt(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
}
flt_idx = width <= 500 ? ((width + 49) / 50) - 1 : ((width + 99) / 100) + 4;
if (flt_idx > 40) flt_idx = 40;
if (flt_idx > 40) { flt_idx = 40; }
}
else
{
@ -2684,8 +2687,9 @@ int icom_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width)
if (width <= 3)
{
rig_debug(RIG_DEBUG_TRACE, "%s: setting filter=%d\n", __func__, (int)width);
return RIG_OK;
return RIG_OK;
}
if (((width != RIG_PASSBAND_NOCHANGE) && (width != current_width))
|| (priv->filter_usbd > 0 || priv->filter_usb > 0 || priv->filter_cw > 0
|| priv->filter_fm > 0))

Wyświetl plik

@ -35,7 +35,7 @@
#include <sys/time.h>
#endif
#define BACKEND_VER "20241127"
#define BACKEND_VER "20241203"
#define ICOM_IS_ID31 rig_is_model(rig, RIG_MODEL_ID31)
#define ICOM_IS_ID51 rig_is_model(rig, RIG_MODEL_ID51)