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
1 changed files with 6 additions and 0 deletions

View File

@ -357,6 +357,12 @@ bool CUARTController::setRaw()
::cfsetispeed(&termios, B460800); ::cfsetispeed(&termios, B460800);
break; break;
#endif /*B460800*/ #endif /*B460800*/
#if defined(B500000)
case 500000U:
::cfsetospeed(&termios, B500000);
::cfsetispeed(&termios, B500000);
break;
#endif /*B500000*/
default: default:
LogError("Unsupported serial port speed - %u", m_speed); LogError("Unsupported serial port speed - %u", m_speed);
::close(m_fd); ::close(m_fd);