Update commhandler.cpp

merge-requests/9/merge
Phil Taylor 2022-05-14 11:10:27 +01:00
rodzic e248882e31
commit 630d2eaba3
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -90,7 +90,7 @@ void commHandler::sendDataOut(const QByteArray &writeData)
{
mutex.lock();
// Recycle port to attempt reconnection.
if (!this->isConnected) {
if (!this->isConnected || !port->isOpen()) {
closePort();
openPort();
}