Fix for marlin - do not expect Ok after every line
This commit is contained in:
parent
da63af5709
commit
f10324ac81
@ -541,8 +541,12 @@ void MainWindow::readSerial()
|
|||||||
QByteArray data = printer.readLine(); //Read the line
|
QByteArray data = printer.readLine(); //Read the line
|
||||||
|
|
||||||
emit recievedData(data); //Send data to parser thread
|
emit recievedData(data); //Send data to parser thread
|
||||||
if(data.startsWith("ok")) readyRecieve++;
|
if(firmware == Marlin || firmware == OtherFirmware) readyRecieve++;
|
||||||
else if(data.startsWith("wa")) readyRecieve=1;
|
else if(firmware == Repetier)
|
||||||
|
{
|
||||||
|
if(data.startsWith("ok")) readyRecieve++;
|
||||||
|
else if(data.startsWith("wa")) readyRecieve=1;
|
||||||
|
}
|
||||||
printMsg(QString(data)); //echo
|
printMsg(QString(data)); //echo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user