kopia lustrzana https://github.com/Hamlib/Hamlib
Merge branch 'master' of https://github.com/mdblack98/Hamlib
commit
d8b2857821
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue