From be52ae33e53ef6cf30af278b26769d7b1ff46143 Mon Sep 17 00:00:00 2001 From: Denis Shienkov Date: Wed, 2 Sep 2015 20:24:21 +0300 Subject: Clear the communicationStarted flag on close Commit bec0b027f802d20dee00a33e9bc83d1d07b2dd42 misses cleaning of the communicationStarted flag, that breaks the data reception after reopening. Change-Id: I4aa63479b3edc5c1e0a5e51f74b66fe4df15a111 Reviewed-by: Sergey Belyashov Reviewed-by: Denis Shienkov --- src/serialport/qserialport_win.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/serialport/qserialport_win.cpp b/src/serialport/qserialport_win.cpp index 1a407ec..1f228c7 100644 --- a/src/serialport/qserialport_win.cpp +++ b/src/serialport/qserialport_win.cpp @@ -117,6 +117,7 @@ void QSerialPortPrivate::close() startAsyncWriteTimer = Q_NULLPTR; } + communicationStarted = false; readStarted = false; writeStarted = false; writeBuffer.clear(); -- cgit v1.2.1