mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
It is not necessary to set bitrate for the USB serial on POSIX
Additionally, this fixed build on macOS as they don't support up to `B500000` in their `termios.h` for some reason
This commit is contained in:
@@ -206,8 +206,6 @@ bool STM32::open() {
|
||||
return false;
|
||||
}
|
||||
|
||||
cfsetspeed(&tty, B500000); // Set speed to 500kbaud
|
||||
|
||||
tty.c_cflag |= (CLOCAL | CREAD); // Ignore modem controls
|
||||
tty.c_cflag &= ~CSIZE;
|
||||
tty.c_cflag |= CS8; // 8-bit characters
|
||||
|
||||
Reference in New Issue
Block a user