SD card fixes

This commit is contained in:
NeoTheFox 2015-03-03 16:31:54 +03:00
parent 34c23b69e4
commit 7dbe5c64eb
2 changed files with 3 additions and 3 deletions

View File

@ -61,7 +61,7 @@ MainWindow::MainWindow(QWidget *parent) :
else sendTimer.setInterval(5); else sendTimer.setInterval(5);
sendTimer.start(); sendTimer.start();
progressSDTimer.setInterval(1000); progressSDTimer.setInterval(1500);
progressSDTimer.start(); progressSDTimer.start();
tempWarning.setInterval(10000); tempWarning.setInterval(10000);
@ -386,7 +386,7 @@ void MainWindow::readSerial()
if(currentLine > 0) currentLine -= data.split(':')[1].toInt(); if(currentLine > 0) currentLine -= data.split(':')[1].toInt();
if(currentLine < 0) currentLine = 0; if(currentLine < 0) currentLine = 0;
} }
else if(datd.startsWith("Done")) sdprinting = false; else if(data.startsWith("Done")) sdprinting = false;
else if(data.startsWith("SD printing byte")) else if(data.startsWith("SD printing byte"))
{ {
QFuture<double> parseSDThread = QtConcurrent::run(this, &MainWindow::parseSDStatus, data); QFuture<double> parseSDThread = QtConcurrent::run(this, &MainWindow::parseSDStatus, data);

View File

@ -6,7 +6,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>199</width> <width>249</width>
<height>246</height> <height>246</height>
</rect> </rect>
</property> </property>