From 6dc9122fe45cca123c4b9acfbd0252e470d75dd9 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Wed, 14 Feb 2024 13:26:29 +0000 Subject: [PATCH] Remove some serial port oddities. --- UARTController.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/UARTController.cpp b/UARTController.cpp index 0d636d81..2400c33d 100644 --- a/UARTController.cpp +++ b/UARTController.cpp @@ -295,7 +295,6 @@ bool CUARTController::setRaw() termios.c_cc[VTIME] = 10; #endif -#if !defined(B38400) || (B38400 != 38400) switch (m_speed) { #if defined(B1200) case 1200U: @@ -368,10 +367,6 @@ bool CUARTController::setRaw() ::close(m_fd); return false; } -#else - ::cfsetospeed(&termios, m_speed); - ::cfsetispeed(&termios, m_speed); -#endif if (::tcsetattr(m_fd, TCSANOW, &termios) < 0) { LogError("Cannot set the attributes for %s", m_device.c_str());