From f6e1c117d894a1580d23ee2fe77109952f0aba0f Mon Sep 17 00:00:00 2001 From: NeoTheFox Date: Tue, 3 Mar 2015 11:30:51 +0300 Subject: [PATCH] Added comments --- mainwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 0d59d63..600ce5f 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -358,7 +358,7 @@ void MainWindow::readSerial() else if(checkingTemperature && data.startsWith("T:")) { QFuture parseThread = QtConcurrent::run(this, &MainWindow::parseStatus, data); - statusWatcher.setFuture(parseThread); + statusWatcher.setFuture(parseThread); //parseThread is very costly operation } else if(data.startsWith("Resend")) //Handle resend if requested { @@ -367,7 +367,7 @@ void MainWindow::readSerial() commandDone = true; } - printMsg(QString(data)); + printMsg(QString(data)); //echo } } @@ -571,7 +571,7 @@ TemperatureReadings MainWindow::parseStatus(QByteArray data) btmp+=data.at(i); } - //ui->extruderlcd->display(extmp.toDouble()); + //ui->extruderlcd->display(extmp.toDouble()); //Not needed here, moved to updateStatus(); //ui->bedlcd->display(btmp.toDouble()); //sinceLastTemp.restart();