From f63b60a86644e9d0cf4af1c6c4b5891974a80129 Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Sun, 22 Sep 2024 10:31:04 -0500 Subject: [PATCH] Ensure satmode flag is set in icom.c --- rigs/icom/icom.c | 7 +++++++ rigs/icom/icom.h | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/rigs/icom/icom.c b/rigs/icom/icom.c index 22045d0fb..e8dafa04f 100644 --- a/rigs/icom/icom.c +++ b/rigs/icom/icom.c @@ -1179,6 +1179,11 @@ retry_open: { retval = RIG_OK; } + else if (retval_echo == -RIG_ETIMEOUT) + { + rig_debug(RIG_DEBUG_ERR, "%s: Unable to determine Icom echo status -- is rig on and connected?\n", __func__); + return retval_echo; + } else { retval = retval_echo; @@ -5640,10 +5645,12 @@ int icom_get_split_vfos(RIG *rig, vfo_t *rx_vfo, vfo_t *tx_vfo) { *rx_vfo = RIG_VFO_MAIN; *tx_vfo = RIG_VFO_SUB; + cachep->satmode = 1; } else if (cachep->split == RIG_SPLIT_OFF) { *rx_vfo = *tx_vfo = rs->current_vfo; + cachep->satmode = 0; } else { diff --git a/rigs/icom/icom.h b/rigs/icom/icom.h index cf712f073..2e0356eb8 100644 --- a/rigs/icom/icom.h +++ b/rigs/icom/icom.h @@ -35,7 +35,7 @@ #include #endif -#define BACKEND_VER "20240831" +#define BACKEND_VER "20240922" #define ICOM_IS_ID31 rig_is_model(rig, RIG_MODEL_ID31) #define ICOM_IS_ID51 rig_is_model(rig, RIG_MODEL_ID51)