Skip to content

Commit

Permalink
Merge pull request #757 from n0mjs710/master
Browse files Browse the repository at this point in the history
  • Loading branch information
g4klx authored Jan 9, 2023
2 parents 8370bdb + f834c50 commit 75aef4b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions UARTController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,12 @@ bool CUARTController::setRaw()
::cfsetispeed(&termios, B460800);
break;
#endif /*B460800*/
#if defined(B500000)
case 500000U:
::cfsetospeed(&termios, B500000);
::cfsetispeed(&termios, B500000);
break;
#endif /*B500000*/
default:
LogError("Unsupported serial port speed - %u", m_speed);
::close(m_fd);
Expand Down

0 comments on commit 75aef4b

Please sign in to comment.