Skip to content

Commit

Permalink
macos fix for the baudrate 460800
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnchain committed Oct 25, 2021
1 parent b57b781 commit 2f9b4c1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions UARTController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ bool CUARTController::setRaw()
#if defined(__APPLE__)
termios.c_cc[VMIN] = 1;
termios.c_cc[VTIME] = 1;
#define B460800 460800
#else
termios.c_cc[VMIN] = 0;
termios.c_cc[VTIME] = 10;
Expand Down

0 comments on commit 2f9b4c1

Please sign in to comment.