diff --git a/sw/lib/ocaml/cserial.c b/sw/lib/ocaml/cserial.c index 7854ce5553..878a3b4b44 100644 --- a/sw/lib/ocaml/cserial.c +++ b/sw/lib/ocaml/cserial.c @@ -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");