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 reasonpull/4/head
parent
ef8d764aa6
commit
d6100f99d1
|
|
@ -206,8 +206,6 @@ bool STM32::open() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
cfsetspeed(&tty, B500000); // Set speed to 500kbaud
|
|
||||||
|
|
||||||
tty.c_cflag |= (CLOCAL | CREAD); // Ignore modem controls
|
tty.c_cflag |= (CLOCAL | CREAD); // Ignore modem controls
|
||||||
tty.c_cflag &= ~CSIZE;
|
tty.c_cflag &= ~CSIZE;
|
||||||
tty.c_cflag |= CS8; // 8-bit characters
|
tty.c_cflag |= CS8; // 8-bit characters
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue