rolled back

This commit is contained in:
NeoTheFox 2015-03-12 20:33:29 +03:00
parent f10324ac81
commit a8e8bbd333

View File

@ -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
}
}