mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-06 16:58:48 +08:00
cserial.c updated for osx
This commit is contained in:
@@ -70,7 +70,7 @@ value c_init_serial(value device, value speed)
|
||||
cur_termios.c_lflag &= ~(ISIG|ICANON|IEXTEN|ECHO|FLUSHO|PENDIN);
|
||||
cur_termios.c_lflag |= NOFLSH;
|
||||
|
||||
if (cfsetispeed(&cur_termios, br)) failwith("setting modem serial device speed");
|
||||
if (cfsetspeed(&cur_termios, br)) failwith("setting modem serial device speed");
|
||||
|
||||
if (tcsetattr(fd, TCSADRAIN, &cur_termios)) failwith("setting modem serial device attr");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user