diff options
author | Aleksei Timofeyev <aleksei.timofeyev@gmail.com> | 2012-08-01 13:31:43 +0600 |
---|---|---|
committer | Denis Shienkov <scapig@yandex.ru> | 2012-08-01 17:08:09 +0200 |
commit | 95f31ab94dce3ccc04b9fd505b33f0734dd9fa13 (patch) | |
tree | acb8c4162bb3863543f90135f786712acd8584cd | |
parent | 698ee8db718bedf9e96174fd282eff71b9187ab8 (diff) | |
download | qtserialport-95f31ab94dce3ccc04b9fd505b33f0734dd9fa13.tar.gz |
Fix incorrect use of cfgetispeed.
Wrong use of cfgetispeed for setting output rate.
Change-Id: I205e49ec09f3278ee2ac15e97a6f38d02ece2a0d
Reviewed-by: Laszlo Papp <lpapp@kde.org>
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Reviewed-by: Denis Shienkov <scapig@yandex.ru>
-rwxr-xr-x | src/serialportengine_unix.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serialportengine_unix.cpp b/src/serialportengine_unix.cpp index 334522b..686982a 100755 --- a/src/serialportengine_unix.cpp +++ b/src/serialportengine_unix.cpp @@ -939,7 +939,7 @@ void UnixSerialPortEngine::detectDefaultSettings() { // Detect rate. const speed_t inputUnixRate = ::cfgetispeed(&m_currentTermios); - const speed_t outputUnixRate = ::cfgetispeed(&m_currentTermios); + const speed_t outputUnixRate = ::cfgetospeed(&m_currentTermios); bool isCustomRateCurrentSet = false; #if defined (Q_OS_LINUX) |