In icom.c fix reading VFOB width when 0 and set to VFOA width

https://github.com/Hamlib/Hamlib/issues/665
https://github.com/Hamlib/Hamlib/issues/654
pull/680/head
Mike Black W9MDB 2021-04-18 22:46:50 -05:00
rodzic 7e7e2cb1ac
commit cd82a2c008
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -2137,6 +2137,7 @@ int icom_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
rig_set_vfo(rig, RIG_VFO_B);
retval = icom_get_dsp_flt(rig, *mode);
*width = retval;
if (*width == 0) *width = rig->state.cache.widthMainA; // we'll use VFOA's width
// dont' really care about cache time here
// this is just to prevent vfo swapping while getting width
rig->state.cache.widthMainB = retval;

Wyświetl plik

@ -30,7 +30,7 @@
#include <sys/time.h>
#endif
#define BACKEND_VER "20210408"
#define BACKEND_VER "20210418"
/*
* defines used by comp_cal_str in rig.c