diff --git a/src/rig.c b/src/rig.c index 304b39d19..51835e1f7 100644 --- a/src/rig.c +++ b/src/rig.c @@ -2117,7 +2117,6 @@ int HAMLIB_API rig_set_ptt(RIG *rig, vfo_t vfo, ptt_t ptt) && ptt == RIG_PTT_OFF) { - rig_debug(RIG_DEBUG_ERR, "%s: PTT RTS debug#3\n", __func__); /* free the port */ ser_close(&rs->pttport); } diff --git a/src/serial.c b/src/serial.c index 63625a485..358320448 100644 --- a/src/serial.c +++ b/src/serial.c @@ -808,13 +808,10 @@ int HAMLIB_API ser_set_rts(hamlib_port_t *p, int state) } #if defined(TIOCMBIS) && defined(TIOCMBIC) - rc = IOCTL(p->fd, TIOCMGET, &y); - rig_debug(RIG_DEBUG_TRACE,"%s: IOCTL#1 got y=%d\n", __func__, y); rc = IOCTL(p->fd, state ? TIOCMBIS : TIOCMBIC, &y); - rig_debug(RIG_DEBUG_TRACE,"%s: IOCTL#1 after set y=%d\n", __func__, y); #else rc = IOCTL(p->fd, TIOCMGET, &y); - rig_debug(RIG_DEBUG_TRACE,"%s: IOCTL#2 got y=%d\n", __func__, y); + if (rc >= 0) { if (state) @@ -826,10 +823,7 @@ int HAMLIB_API ser_set_rts(hamlib_port_t *p, int state) y &= ~TIOCM_RTS; } - rig_debug(RIG_DEBUG_TRACE,"%s: IOCTL#2 set y=%d\n", __func__, y); rc = IOCTL(p->fd, TIOCMSET, &y); - rc = IOCTL(p->fd, TIOCMGET, &y); - rig_debug(RIG_DEBUG_TRACE,"%s: IOCTL#2 after set y=%d\n", __func__, y); } #endif