From ff5275e44ce0bfc1dbb5ee367f2d48e77e14e4ba Mon Sep 17 00:00:00 2001 From: Michael Black Date: Sun, 1 Dec 2019 15:23:34 -0600 Subject: [PATCH] Fix icom.c to not set XIT on non-XIT rigs --- icom/icom.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/icom/icom.c b/icom/icom.c index 77045197f..fd4469cd5 100644 --- a/icom/icom.c +++ b/icom/icom.c @@ -881,9 +881,9 @@ static int icom_set_it_new(RIG *rig, vfo_t vfo, shortfreq_t ts, int set_xit) if (ts == 0) // Turn off both RIT/XIT { if (rig->caps->has_get_func - && RIG_FUNC_XIT) // some rigs don't have XIT like the 9700 + & RIG_FUNC_XIT) { - rig_debug(RIG_DEBUG_VERBOSE, "%s: rig does not have xit command enabled\n", + rig_debug(RIG_DEBUG_TRACE, "%s: turning of XIT too\n", __func__); retval = icom_set_func(rig, vfo, RIG_FUNC_XIT, 0); @@ -892,6 +892,10 @@ static int icom_set_it_new(RIG *rig, vfo_t vfo, shortfreq_t ts, int set_xit) return retval; } } + else // some rigs don't have XIT like the 9700 + { + rig_debug(RIG_DEBUG_TRACE, "%s: rig does not have xit command enabled\n", + } retval = icom_set_func(rig, vfo, RIG_FUNC_RIT, 0); }