Initial resend handling

This commit is contained in:
NeoTheFox 2015-03-02 15:29:56 +03:00
parent d0ca34ca53
commit 5fc539d300

View File

@ -364,6 +364,12 @@ void MainWindow::readSerial()
ui->bedlcd->display(btmp.toDouble());
sinceLastTemp.restart();
}
else if(data.startsWith("Resend"))
{
if(currentLine > 0) currentLine -= data.split(':')[1].toInt();
if(currentLine < 0) currentLine = 0;
commandDone = true;
}
else if(data.startsWith("ok") || data.startsWith("wait")) commandDone = true;
printMsg(QString(data));
}