Permalink
Browse files

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

  • Loading branch information...
2 parents 32e57e1 + ab08304 commit 4b3d968e3a93fa688c1809552891f54a1addc475 @rcc committed Feb 26, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/serial/serial.c
View
@@ -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;

0 comments on commit 4b3d968

Please sign in to comment.