From d6100f99d1d5f07fc151cc2550ecf0fabfa0107f Mon Sep 17 00:00:00 2001 From: Paul Hollinsky Date: Thu, 20 Sep 2018 14:44:32 -0400 Subject: [PATCH] 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 --- platform/posix/stm32.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/platform/posix/stm32.cpp b/platform/posix/stm32.cpp index 234688a..437c3de 100644 --- a/platform/posix/stm32.cpp +++ b/platform/posix/stm32.cpp @@ -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