From 5e15159c79c056d235f69a1c092fdae6029bd081 Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Sun, 12 Dec 2021 08:17:30 -0600 Subject: [PATCH] Move debug in set_ptt to see logic for serial port sharing --- src/rig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rig.c b/src/rig.c index f7efc4891..948f66ea1 100644 --- a/src/rig.c +++ b/src/rig.c @@ -3155,10 +3155,10 @@ int HAMLIB_API rig_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt) retcode = ser_set_dtr(&rig->state.pttport, ptt != RIG_PTT_OFF); + rig_debug(RIG_DEBUG_TRACE, "%s: rigport=%s, pttport=%s, ptt_share=%d\n", __func__, rs->pttport.pathname, rs->rigport.pathname, rs->ptt_share); if (strcmp(rs->pttport.pathname, rs->rigport.pathname) && ptt == RIG_PTT_OFF && rs->ptt_share != 0) { - rig_debug(RIG_DEBUG_TRACE, "%s: ptt_share=%d\n", __func__, rs->ptt_share); /* free the port */ ser_close(&rs->pttport); } @@ -3202,10 +3202,10 @@ int HAMLIB_API rig_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt) retcode = ser_set_rts(&rig->state.pttport, ptt != RIG_PTT_OFF); + rig_debug(RIG_DEBUG_TRACE, "%s: rigport=%s, pttport=%s, ptt_share=%d\n", __func__, rs->pttport.pathname, rs->rigport.pathname, rs->ptt_share); if (strcmp(rs->pttport.pathname, rs->rigport.pathname) && ptt == RIG_PTT_OFF && rs->ptt_share != 0) { - rig_debug(RIG_DEBUG_TRACE, "%s: ptt_share=%d\n", __func__, rs->ptt_share); /* free the port */ ser_close(&rs->pttport); }