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:
Paul Hollinsky
2018-09-20 14:44:32 -04:00
parent ef8d764aa6
commit d6100f99d1
-2
View File
@@ -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