pull/281/head
Michael Black 2020-05-27 06:56:56 -05:00
commit d8b2857821
2 zmienionych plików z 1 dodań i 8 usunięć

Wyświetl plik

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

Wyświetl plik

@ -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