In icom.c add check for current vfo to avoid vfo swapping

https://github.com/Hamlib/Hamlib/issues/665
https://github.com/Hamlib/Hamlib/issues/654
pull/680/head
Mike Black W9MDB 2021-04-19 09:51:58 -05:00
rodzic cd82a2c008
commit 870b9ca748
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -2105,7 +2105,7 @@ int icom_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width)
// reason is we can't get width without swapping vfos -- yuck!!
if (width != NULL)
{
if (vfo & (RIG_VFO_A | RIG_VFO_MAIN | RIG_VFO_SUB_A | RIG_VFO_MAIN_A))
if (vfo & (RIG_VFO_A | RIG_VFO_MAIN | RIG_VFO_SUB_A | RIG_VFO_MAIN_A | RIG_VFO_CURR))
{
// then we get our current vfo..i.e. VFOA
if (rig->state.current_vfo != RIG_VFO_A)

Wyświetl plik

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