forked from Imagelibrary/rtems
2011-12-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/src/termios_setinitialbaud.c: Fixed typo.
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
2011-12-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||||
|
||||
* libcsupport/src/termios_setinitialbaud.c: Fixed typo.
|
||||
|
||||
2011-12-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||||
|
||||
* libcsupport/include/rtems/termiostypes.h,
|
||||
|
||||
@@ -23,7 +23,7 @@ int rtems_termios_set_initial_baud(
|
||||
int rv = 0;
|
||||
tcflag_t c_cflag_baud = rtems_termios_number_to_baud(baud);
|
||||
|
||||
if ( c_cflag_baud == 0 ) {
|
||||
if ( c_cflag_baud != 0 ) {
|
||||
tcflag_t cbaud = CBAUD;
|
||||
|
||||
tty->termios.c_cflag = (tty->termios.c_cflag & ~cbaud) | c_cflag_baud;
|
||||
|
||||
Reference in New Issue
Block a user