diff --git a/src/modules/syslink/syslink_main.cpp b/src/modules/syslink/syslink_main.cpp index c286445ad2b8..4f859cbc9126 100644 --- a/src/modules/syslink/syslink_main.cpp +++ b/src/modules/syslink/syslink_main.cpp @@ -254,7 +254,8 @@ Syslink::open_serial(const char *dev) tcgetattr(fd, &config); // clear ONLCR flag (which appends a CR for every LF) - config.c_oflag &= ~ONLCR; + config.c_oflag &= 0; + config.c_lflag &= ~(ECHO | ECHONL | ICANON | IEXTEN | ISIG); // Disable hardware flow control config.c_cflag &= ~CRTSCTS;