summaryrefslogtreecommitdiff
path: root/src/MTS_IO_SerialConnection.cpp
diff options
context:
space:
mode:
authorSerhii Voloshynov <serhii.voloshynov@globallogic.com>2020-02-28 16:48:40 +0200
committerSerhii Voloshynov <serhii.voloshynov@globallogic.com>2020-02-28 16:48:40 +0200
commitb954f9d5f9126a993f30eb220645b4e8797d9fcc (patch)
treef24b3e2f6435255a6a1631dc3fa73422c777f1a9 /src/MTS_IO_SerialConnection.cpp
parent383d4a2f1f54c8adf8b1dd86baa7edd4440e76d4 (diff)
downloadlibmts-io-b954f9d5f9126a993f30eb220645b4e8797d9fcc.tar.gz
libmts-io-b954f9d5f9126a993f30eb220645b4e8797d9fcc.tar.bz2
libmts-io-b954f9d5f9126a993f30eb220645b4e8797d9fcc.zip
fixes after codereview
Diffstat (limited to 'src/MTS_IO_SerialConnection.cpp')
-rw-r--r--src/MTS_IO_SerialConnection.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/MTS_IO_SerialConnection.cpp b/src/MTS_IO_SerialConnection.cpp
index a12a09b..936d28d 100644
--- a/src/MTS_IO_SerialConnection.cpp
+++ b/src/MTS_IO_SerialConnection.cpp
@@ -436,6 +436,7 @@ bool SerialConnection::doOpen(const int32_t& timeoutMillis) {
break;
case OFF:
+ default:
break;
}
@@ -472,12 +473,12 @@ bool SerialConnection::doOpen(const int32_t& timeoutMillis) {
switch (m_eFlowControl) {
case RTS_CTS:
- options.c_cflag |= CRTSCTS;
+ options.c_cflag |= CRTSCTS;
break;
case NONE:
default:
- options.c_cflag &= ~CRTSCTS;
- break;
+ options.c_cflag &= ~CRTSCTS;
+ break;
}
//Set Control Modes