From c229c2f52df383216e307bc0d76e8b81b0e431c1 Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Thu, 18 Nov 2021 12:05:57 -0600 Subject: [PATCH] Add some debug to kenwood.c https://github.com/Hamlib/Hamlib/issues/872 --- rigs/kenwood/kenwood.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rigs/kenwood/kenwood.c b/rigs/kenwood/kenwood.c index 6f48d67b4..55d160d3d 100644 --- a/rigs/kenwood/kenwood.c +++ b/rigs/kenwood/kenwood.c @@ -2092,6 +2092,7 @@ int kenwood_set_mode(RIG *rig, vfo_t vfo, rmode_t mode, pbwidth_t width) { /* emulations like PowerSDR and SmartSDR normally hijack the RTTY modes for SSB-DATA AFSK modes */ + rig_debug(RIG_DEBUG_VERBOSE, "%s: emulate=%d, HPSDR=%d, changing PKT mode to RTTY\n", __func__, priv->is_emulation, RIG_IS_HPSDR); if (RIG_MODE_PKTLSB == mode) { mode = RIG_MODE_RTTY; } if (RIG_MODE_PKTUSB == mode) { mode = RIG_MODE_RTTYR; } @@ -2413,6 +2414,7 @@ int kenwood_get_mode(RIG *rig, vfo_t vfo, rmode_t *mode, pbwidth_t *width) { /* emulations like PowerSDR and SmartSDR normally hijack the RTTY modes for SSB-DATA AFSK modes */ + rig_debug(RIG_DEBUG_VERBOSE, "%s: emulate=%d, HPSDR=%d, changing RTTY mode to PKT\n", __func__, priv->is_emulation, RIG_IS_HPSDR); if (RIG_MODE_RTTY == *mode) { *mode = RIG_MODE_PKTLSB; } if (RIG_MODE_RTTYR == *mode) { *mode = RIG_MODE_PKTUSB; }