diff options
author | Denis Shienkov <denis.shienkov@gmail.com> | 2015-09-06 16:46:07 +0300 |
---|---|---|
committer | Denis Shienkov <denis.shienkov@gmail.com> | 2015-09-07 13:11:50 +0000 |
commit | 42fd000309fe72f0209b6432144bc1f3e6b2add2 (patch) | |
tree | e0f1f50dea1adfb197d698515f17bf063ce0981e /src/serialport/qserialport_p.h | |
parent | 3abd3ed07d2b30ecb2f8b9772ed5b3811bb9194b (diff) | |
download | qtserialport-42fd000309fe72f0209b6432144bc1f3e6b2add2.tar.gz |
Get rid of stored DCB structure
It is better to read the current DCB structure each
time before changing, than to have stored it locally.
Change-Id: I487931469112d657c12d99a74aa577921c042f35
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Diffstat (limited to 'src/serialport/qserialport_p.h')
-rw-r--r-- | src/serialport/qserialport_p.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/serialport/qserialport_p.h b/src/serialport/qserialport_p.h index cf8cb79..e626723 100644 --- a/src/serialport/qserialport_p.h +++ b/src/serialport/qserialport_p.h @@ -208,7 +208,8 @@ public: #elif defined(Q_OS_WIN32) bool initialize(); - bool updateDcb(); + bool setDcb(DCB *dcb); + bool getDcb(DCB *dcb); bool updateCommTimeouts(); void handleLineStatusErrors(); OVERLAPPED *waitForNotified(int msecs); @@ -225,7 +226,6 @@ public: bool emulateErrorPolicy(); void emitReadyRead(); - DCB currentDcb; DCB restoredDcb; COMMTIMEOUTS currentCommTimeouts; COMMTIMEOUTS restoredCommTimeouts; |