Fix set_mode_with_data for IC-7200

https://github.com/Hamlib/Hamlib/issues/921
pull/922/head
Mike Black W9MDB 2022-01-05 22:58:30 -06:00
rodzic 2f0b12fbb3
commit 5735441205
2 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -2510,6 +2510,8 @@ int icom_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
}
else
{
priv_data->filter = 0;
if (mode_len == 2) priv_data->filter = modebuf[2];
rig_debug(RIG_DEBUG_TRACE,
"%s: modebuf[0]=0x%02x, modebuf[1]=0x%02x, mode_len=%d\n", __func__, modebuf[0],
modebuf[1], mode_len);

Wyświetl plik

@ -30,7 +30,7 @@
#include <sys/time.h>
#endif
#define BACKEND_VER "20211222"
#define BACKEND_VER "20220105"
#define ICOM_IS_SECONDARY_VFO(vfo) ((vfo) & (RIG_VFO_B | RIG_VFO_SUB | RIG_VFO_SUB_B | RIG_VFO_MAIN_B))
#define ICOM_GET_VFO_NUMBER(vfo) (ICOM_IS_SECONDARY_VFO(vfo) ? 0x01 : 0x00)