diff --git a/thirdParty/qserialport/src/posix/termioshelper.cpp b/thirdParty/qserialport/src/posix/termioshelper.cpp index d2a680228cbf27fa292f7cd245bc309211d427e7..acc2aea2731c351d475d6e433279a502f04dba53 100644 --- a/thirdParty/qserialport/src/posix/termioshelper.cpp +++ b/thirdParty/qserialport/src/posix/termioshelper.cpp @@ -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: