Change kenwood.c to not do a set_vfo if current_vfo already is set

https://github.com/Hamlib/Hamlib/issues/844
pull/875/head
Mike Black W9MDB 2021-10-28 16:42:07 -05:00
rodzic 9d2aaa00c0
commit 0309a34d02
2 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -1062,6 +1062,12 @@ int kenwood_set_vfo(RIG *rig, vfo_t vfo)
*/
if (priv->is_emulation && priv->curr_mode > 0) { RETURNFUNC(RIG_OK); }
if (rig->state.current_vfo == vfo)
{
rig_debug(RIG_DEBUG_VERBOSE, "%s: vfo already is %s...skipping\n", __func__, rig_strvfo(vfo));
RETURNFUNC(RIG_OK);
}
switch (vfo)
{
case RIG_VFO_A:

Wyświetl plik

@ -28,7 +28,7 @@
#include "token.h"
#include "misc.h"
#define BACKEND_VER "20211027"
#define BACKEND_VER "20211028"
#define EOM_KEN ';'
#define EOM_TH '\r'