diff --git a/platforms/nuttx/src/px4/common/SerialImpl.cpp b/platforms/nuttx/src/px4/common/SerialImpl.cpp index 4fcf2e499c..e8df9fcead 100644 --- a/platforms/nuttx/src/px4/common/SerialImpl.cpp +++ b/platforms/nuttx/src/px4/common/SerialImpl.cpp @@ -73,13 +73,13 @@ SerialImpl::~SerialImpl() bool SerialImpl::validateBaudrate(uint32_t baudrate) { if ((baudrate == 9600) || - (baudrate == 19200) || - (baudrate == 38400) || - (baudrate == 57600) || - (baudrate == 115200) || - (baudrate == 230400) || - (baudrate == 460800) || - (baudrate == 921600)) { + (baudrate == 19200) || + (baudrate == 38400) || + (baudrate == 57600) || + (baudrate == 115200) || + (baudrate == 230400) || + (baudrate == 460800) || + (baudrate == 921600)) { return true; } diff --git a/platforms/posix/src/px4/common/SerialImpl.cpp b/platforms/posix/src/px4/common/SerialImpl.cpp index ab48a1a58a..ef76c2ebf7 100644 --- a/platforms/posix/src/px4/common/SerialImpl.cpp +++ b/platforms/posix/src/px4/common/SerialImpl.cpp @@ -39,13 +39,13 @@ SerialImpl::~SerialImpl() bool SerialImpl::validateBaudrate(uint32_t baudrate) { if ((baudrate == 9600) || - (baudrate == 19200) || - (baudrate == 38400) || - (baudrate == 57600) || - (baudrate == 115200) || - (baudrate == 230400) || - (baudrate == 460800) || - (baudrate == 921600)) { + (baudrate == 19200) || + (baudrate == 38400) || + (baudrate == 57600) || + (baudrate == 115200) || + (baudrate == 230400) || + (baudrate == 460800) || + (baudrate == 921600)) { return true; } diff --git a/platforms/qurt/src/px4/SerialImpl.cpp b/platforms/qurt/src/px4/SerialImpl.cpp index 9ce43e94f2..f4606a8046 100644 --- a/platforms/qurt/src/px4/SerialImpl.cpp +++ b/platforms/qurt/src/px4/SerialImpl.cpp @@ -35,17 +35,17 @@ SerialImpl::~SerialImpl() bool SerialImpl::validateBaudrate(uint32_t baudrate) { if ((baudrate != 9600) && - (baudrate != 38400) && - (baudrate != 57600) && - (baudrate != 115200) && - (baudrate != 230400) && - (baudrate != 250000) && - (baudrate != 420000) && - (baudrate != 460800) && - (baudrate != 921600) && - (baudrate != 1000000) && - (baudrate != 1843200) && - (baudrate != 2000000)) { + (baudrate != 38400) && + (baudrate != 57600) && + (baudrate != 115200) && + (baudrate != 230400) && + (baudrate != 250000) && + (baudrate != 420000) && + (baudrate != 460800) && + (baudrate != 921600) && + (baudrate != 1000000) && + (baudrate != 1843200) && + (baudrate != 2000000)) { return false; }