Ensure both input and output baud rates are set. v5.3.0-rc1
authorDyami Caliri <dyami@dragonframe.com>
Thu, 1 May 2014 21:22:00 +0000 (14:22 -0700)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Sat, 3 May 2014 06:57:30 +0000 (08:57 +0200)
commit684945503a444dfc3a0fd475b7f8d81bc48a387a
tree52a89c0e432e89c07c7f448cfe60de1dbbc4946d
parentd1e689f8c5162ec77e6fa08fbb4e988545c5c4ab
Ensure both input and output baud rates are set.

QSerialPortPrivate::setBaudRate() wasn't trying to set the output
baud rate for the port after successfully setting the input baud rate.

Also, some devices (such as FTDI chips) on Mac don't respond
properly if you call updateTermios() with mismatched baud rates,
even if you later set them to be the same.

Change-Id: I507fe10cba221bb4e43ded650dc44cc974de2414
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Reviewed-by: Laszlo Papp <lpapp@kde.org>
src/serialport/qserialport_unix.cpp