From f1bf68654fc1610923a711ad076eaed55253f3f6 Mon Sep 17 00:00:00 2001 From: Phil Taylor Date: Thu, 4 Mar 2021 21:13:21 +0000 Subject: [PATCH] Update pttyhandler.cpp --- pttyhandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pttyhandler.cpp b/pttyhandler.cpp index 0bdc79a..740cd46 100644 --- a/pttyhandler.cpp +++ b/pttyhandler.cpp @@ -155,7 +155,7 @@ void pttyHandler::sendDataOut(const QByteArray& writeData) qint64 bytesWritten=0; - if ((unsigned char)inPortData[2] != 0xE1 && (unsigned char)inPortData[3] != 0xE1) { + if (writeData[2] != (char)0xE1 || writeData[3] != (char)0xE1) { bytesWritten = port->write(writeData); if (bytesWritten != writeData.length()) { qDebug(logSerial()) << "bytesWritten: " << bytesWritten << " length of byte array: " << writeData.length()\