Commit 00f5af70 authored by LM's avatar LM

Made sure UART rate reporting is correct even if baud rate defines do not exist

parent ec603647
......@@ -389,14 +389,23 @@ QPortSettings::BaudRate TermiosHelper::baudRate() const
#ifdef B230400
case B230400:
return QPortSettings::BAUDR_230400;
#else
case 230400:
return QPortSettings::BAUDR_230400;
#endif
#ifdef B460800
case B460800:
return QPortSettings::BAUDR_460800;
#else
case 460800:
return QPortSettings::BAUDR_460800;
#endif
#ifdef B921600
case B921600:
return QPortSettings::BAUDR_921600;
#else
case 921600:
return QPortSettings::BAUDR_921600;
#endif
#if defined(Q_OS_LINUX)
case B500000:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment