Move debug in set_ptt to see logic for serial port sharing

pull/892/head
Mike Black W9MDB 2021-12-12 08:17:30 -06:00
rodzic 4fa2d68477
commit 5e15159c79
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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);
}