From 2e1d88c19490195aa1273da4ed381901d589e7b3 Mon Sep 17 00:00:00 2001 From: Phil Taylor Date: Sat, 14 May 2022 11:40:58 +0100 Subject: [PATCH] Update commhandler.cpp --- commhandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commhandler.cpp b/commhandler.cpp index 2716335..bee481a 100644 --- a/commhandler.cpp +++ b/commhandler.cpp @@ -88,7 +88,7 @@ void commHandler::receiveDataFromUserToRig(const QByteArray &data) void commHandler::sendDataOut(const QByteArray &writeData) { // Recycle port to attempt reconnection. - if (!this->isConnected || !port->isOpen() || lastDataReceived.msecsTo(QTime::currentTime()) > 2000) { + if (!this->isConnected || lastDataReceived.msecsTo(QTime::currentTime()) > 2000) { qDebug(logSerial()) << "Serial port error? Attempting reconnect..."; lastDataReceived = QTime::currentTime(); QTimer::singleShot(500, this, SLOT(init()));