From 207f28b2569888b0fa5a7da53f380f13f51e452b Mon Sep 17 00:00:00 2001 From: Michael Black W9MDB Date: Mon, 8 Mar 2021 16:59:22 -0600 Subject: [PATCH] Add debug to rig.c https://github.com/Hamlib/Hamlib/issues/593 --- src/rig.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/rig.c b/src/rig.c index 6e1da02f2..dd77e10c6 100644 --- a/src/rig.c +++ b/src/rig.c @@ -3880,6 +3880,11 @@ int HAMLIB_API rig_set_split_freq_mode(RIG *rig, { retcode = caps->set_split_freq_mode(rig, vfo, tx_freq, tx_mode, tx_width); retcode2 = rig_get_split_freq(rig, vfo, &tfreq); + if (tfreq != tx_freq) + { + rig_debug(RIG_DEBUG_ERR, "%s: txfreq!=tfreq %.0f!=%.0f, retry=%d, rc1=%d, rc2=%d\n", __func__, tx_freq, tfreq, retry, retcode, retcode2); + hl_usleep(50*1000); // 50ms sleep may help here + } } while (tfreq != tx_freq && retry-- > 0 && retcode == RIG_OK && retcode2 == RIG_OK);