1
0
mirror of https://github.com/UzixLS/picocom.git synced 2025-07-19 07:21:18 +03:00
This commit is contained in:
Nick Patavalis
2018-02-23 22:30:55 +02:00
parent 7755c256e8
commit 6b15b80846

View File

@ -913,6 +913,7 @@ tn2217_modem_bic(struct term_s *t, const int *modem)
static int
tn2217_send_break(struct term_s *t)
{
/* FIXME(npat): Check can_comport? */
tn2217_send_comport_cmd1(t, COMPORT_SET_CONTROL, COMPORT_CONTROL_BREAK_ON);
usleep(250000); /* 250 msec */
tn2217_send_comport_cmd1(t, COMPORT_SET_CONTROL, COMPORT_CONTROL_BREAK_OFF);
@ -924,6 +925,7 @@ tn2217_flush(struct term_s *t, int selector)
{
unsigned char val;
/* FIXME(npat): Check can_comport? */
/* Purge, presumably so that we have something to flush */
switch (selector) {
case TCIFLUSH: val = COMPORT_PURGE_RX; break;