Skip to content

Commit

Permalink
Remove some serial port oddities.
Browse files Browse the repository at this point in the history
  • Loading branch information
g4klx committed Feb 14, 2024
1 parent 218a017 commit 6dc9122
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions UARTController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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());
Expand Down

0 comments on commit 6dc9122

Please sign in to comment.