From 16d76eff4b33d3b56e5bcfeb8254ef220c7ec7c6 Mon Sep 17 00:00:00 2001 From: Michael Black W9MDB Date: Thu, 7 Jan 2021 15:50:50 -0600 Subject: [PATCH] Add debug to icom/frame.c https://github.com/Hamlib/Hamlib/issues/490 --- rigs/icom/frame.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rigs/icom/frame.c b/rigs/icom/frame.c index 861347a07..1723fa8bc 100644 --- a/rigs/icom/frame.c +++ b/rigs/icom/frame.c @@ -395,10 +395,12 @@ int rig2icom_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width, pbwidth_t width_tmp = width; struct icom_priv_data *priv_data = (struct icom_priv_data *) rig->state.priv; + rig_debug(RIG_DEBUG_TRACE, "%s: mode=%ld, width=%ld\n", __func__, mode, width); icmode_ext = -1; if (width == RIG_PASSBAND_NOCHANGE) // then we read width so we can reuse it { + rig_debug(RIG_DEBUG_TRACE, "%s: width==RIG_PASSBAND_NOCHANGE\n", __func__); rmode_t tmode; int ret = rig_get_mode(rig, vfo, &tmode, &width); @@ -472,6 +474,7 @@ int rig2icom_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width, if (width_tmp != RIG_PASSBAND_NOCHANGE) { + rig_debug(RIG_DEBUG_TRACE, "%s: width_tmp=%ld\n", __func__, width_tmp); pbwidth_t medium_width = rig_passband_normal(rig, mode); if (width == RIG_PASSBAND_NORMAL)