Add satmode detection for Icom rigs like IC9700

In satmode VFOB/Sub now maps to SubA (2nd VFO)
https://github.com/Hamlib/Hamlib/issues/621
pull/649/head
Michael Black W9MDB 2021-03-20 08:07:16 -05:00
rodzic 950163f1a4
commit 80e199b302
2 zmienionych plików z 6 dodań i 1 usunięć

Wyświetl plik

@ -2107,6 +2107,11 @@ int icom_set_vfo(RIG *rig, vfo_t vfo)
{
// If we're being asked for B/Sub but we are a MainA/MainB rig change it
vfo = RIG_VFO_MAIN_B;
// If we're in satmode for rigs like IC9700 we want the 2nd VFO
if (rig->state.cache.satmode)
{
vfo = RIG_VFO_SUB_A;
}
}
else if ((vfo == RIG_VFO_A || vfo == RIG_VFO_B) && !VFO_HAS_A_B && VFO_HAS_MAIN_SUB)
{

Wyświetl plik

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