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
pull/4/head
Paul Hollinsky 2018-09-20 14:44:32 -04:00
parent ef8d764aa6
commit d6100f99d1
1 changed files with 0 additions and 2 deletions

View File

@ -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