From a8e8bbd333e6ba6b244e44d1fcabf17126ffb7b2 Mon Sep 17 00:00:00 2001 From: NeoTheFox Date: Thu, 12 Mar 2015 20:33:29 +0300 Subject: [PATCH] rolled back --- mainwindow.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index df0a060..4d715a4 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -541,12 +541,10 @@ void MainWindow::readSerial() QByteArray data = printer.readLine(); //Read the line emit recievedData(data); //Send data to parser thread - if(firmware == Marlin || firmware == OtherFirmware) readyRecieve++; - else if(firmware == Repetier) - { - if(data.startsWith("ok")) readyRecieve++; - else if(data.startsWith("wa")) readyRecieve=1; - } + + if(data.startsWith("ok")) readyRecieve++; + else if(data.startsWith("wa")) readyRecieve=1; + printMsg(QString(data)); //echo } }