Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'master' of github.com:rcc/prjstart

  • Loading branch information...
commit 4b3d968e3a93fa688c1809552891f54a1addc475 2 parents 32e57e1 + ab08304
@rcc authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/serial/serial.c
View
6 lib/serial/serial.c
@@ -176,12 +176,16 @@ struct serial_device *serial_open(const char *device_path, uint32_t baud,
goto error_exit;
}
/* Disable canonicalize, echo, and signals */
- options.c_lflag &= ~(ICANON | ECHO | ECHOE | ISIG);
+ options.c_lflag &= ~(ICANON | ECHO | ECHOE | ECHOK | ECHONL | ISIG |
+ IEXTEN);
/* Disable output processing */
options.c_oflag &= ~OPOST;
options.c_cc[VMIN] = 0;
options.c_cc[VTIME] = 1;
+ /* Turn off some input flags */
+ options.c_iflag &= ~(INLCR | IGNCR | ICRNL | IGNBRK);
+
if(baud != 0) {
options.c_ispeed = baud;
options.c_ospeed = baud;
Please sign in to comment.
Something went wrong with that request. Please try again.