Add 460800 serial speed

This commit is contained in:
Geoffrey Merck 2020-05-30 20:19:46 +02:00
parent 75d5083f8e
commit c2187fd624
1 changed files with 4 additions and 0 deletions

View File

@ -304,6 +304,10 @@ bool CSerialController::open()
::cfsetospeed(&termios, B230400);
::cfsetispeed(&termios, B230400);
break;
case 460800U:
::cfsetospeed(&termios, B460800);
::cfsetispeed(&termios, B460800);
break;
default:
LogError("Unsupported serial port speed - %u", m_speed);
::close(m_fd);