mirror of
https://github.com/g4klx/MMDVMHost
synced 2025-12-22 08:05:49 +08:00
macos fix for the baudrate 460800
This commit is contained in:
@@ -289,6 +289,7 @@ bool CUARTController::setRaw()
|
|||||||
#if defined(__APPLE__)
|
#if defined(__APPLE__)
|
||||||
termios.c_cc[VMIN] = 1;
|
termios.c_cc[VMIN] = 1;
|
||||||
termios.c_cc[VTIME] = 1;
|
termios.c_cc[VTIME] = 1;
|
||||||
|
#define B460800 460800
|
||||||
#else
|
#else
|
||||||
termios.c_cc[VMIN] = 0;
|
termios.c_cc[VMIN] = 0;
|
||||||
termios.c_cc[VTIME] = 10;
|
termios.c_cc[VTIME] = 10;
|
||||||
|
|||||||
Reference in New Issue
Block a user