From b2819e3b55474107ac274bb221bd7da4d8416be4 Mon Sep 17 00:00:00 2001 From: Collin Kidder Date: Mon, 15 Jun 2015 21:41:58 -0400 Subject: [PATCH] Added back in the validation of comm to GVRET. --- serialworker.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/serialworker.cpp b/serialworker.cpp index 55a5972..775e864 100644 --- a/serialworker.cpp +++ b/serialworker.cpp @@ -64,7 +64,7 @@ void SerialWorker::setSerialPort(QSerialPortInfo *port) output.append(0xF1); //another command to the GVRET output.append(0x07); //request device information serial->write(output); - connected = true; //should be false. only set true to test old firmware + connected = false; connect(serial, SIGNAL(readyRead()), this, SLOT(readSerialData())); QTimer::singleShot(1000, this, SLOT(connectionTimeout())); if (ticker == NULL) @@ -88,9 +88,9 @@ void SerialWorker::connectionTimeout() if (!connected) //no? { //then emit the the failure signal and see if anyone cares - //qDebug() << "Failed to connect to GVRET at that com port"; - //ticker->stop(); - //emit connectionFailure(); + qDebug() << "Failed to connect to GVRET at that com port"; + ticker->stop(); + emit connectionFailure(); } }