Merge pull request #757 from n0mjs710/master

This commit is contained in:
Jonathan Naylor 2023-01-09 15:16:34 +00:00 committed by GitHub
commit 75aef4b459
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);