From 1e658578ec1debeedc228206faa71e9965766fcc Mon Sep 17 00:00:00 2001 From: Michael Black Date: Sat, 14 Mar 2020 15:21:56 -0500 Subject: [PATCH] Reset x25cmdfails when SATMODE is called --- rigs/icom/icom.c | 3 +++ rigs/icom/icom.h | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/rigs/icom/icom.c b/rigs/icom/icom.c index a55185ba7..0ce7afe2d 100644 --- a/rigs/icom/icom.c +++ b/rigs/icom/icom.c @@ -4765,6 +4765,8 @@ int icom_set_func(RIG *rig, vfo_t vfo, setting_t func, int status) unsigned char fctbuf[MAXFRAMELEN], ackbuf[MAXFRAMELEN]; int fct_len, acklen, retval; int fct_cn, fct_sc; /* Command Number, Subcommand */ + struct rig_state *rs = &rig->state; + struct icom_priv_data *priv = (struct icom_priv_data *) rs->priv; rig_debug(RIG_DEBUG_VERBOSE, "%s called\n", __func__); @@ -4950,6 +4952,7 @@ int icom_set_func(RIG *rig, vfo_t vfo, setting_t func, int status) fct_cn = C_CTL_FUNC; fct_sc = S_MEM_SATMODE; } + priv->x25cmdfails = 0; // we reset this to try it again break; diff --git a/rigs/icom/icom.h b/rigs/icom/icom.h index 3aa03146a..2248c4e1f 100644 --- a/rigs/icom/icom.h +++ b/rigs/icom/icom.h @@ -30,7 +30,7 @@ #include #endif -#define BACKEND_VER "0.37" +#define BACKEND_VER "0.38" /* * defines used by comp_cal_str in rig.c