diff --git a/mainwindow.cpp b/mainwindow.cpp
index 35a6e0f..5c4bdaa 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -87,6 +87,7 @@ MainWindow::MainWindow(QWidget *parent) :
feedrate = settings.value("feedrate", 1500).toInt();
extruderFeedrate = settings.value("extruderfeedrate", 200).toInt();
trayIconEnabled = settings.value("core/trayiconenabled", 1).toBool();
+ supressWait = settings.value("user/supresswait", 0).toBool();
int size = settings.beginReadArray("user/recentfiles");
for(int i = 0; i < size; ++i)
{
@@ -603,6 +604,7 @@ void MainWindow::readSerial(QByteArray data)
void MainWindow::printMsg(QString text)
{
+ if(supressWait && text.startsWith("wait")) return;
//Get the cursor and set it to the end
QTextCursor cursor = ui->terminal->textCursor();
cursor.movePosition(QTextCursor::End);
diff --git a/mainwindow.h b/mainwindow.h
index 233c407..5e44ff8 100644
--- a/mainwindow.h
+++ b/mainwindow.h
@@ -77,6 +77,7 @@ private:
bool echo;
bool chekingSDStatus;
bool trayIconEnabled;
+ bool supressWait;
int firmware;
int feedrate;
int extruderFeedrate;
diff --git a/settingswindow.cpp b/settingswindow.cpp
index e13d24b..0984411 100644
--- a/settingswindow.cpp
+++ b/settingswindow.cpp
@@ -25,6 +25,7 @@ SettingsWindow::SettingsWindow(QWidget *parent) :
ui->checksumbox->setChecked(settings.value("core/checksums", 0).toBool());
ui->sdbox->setChecked(settings.value("core/checksdstatus", 1).toBool());
ui->dtrbox->setChecked(settings.value("core/dtr", 1).toBool());
+ ui->supresswaitbox->setChecked(settings.value("user/supresswait").toBool());
ui->firmwarecombo->addItem("Marlin"); //0
ui->firmwarecombo->addItem("Repetier"); //1
@@ -60,6 +61,7 @@ void SettingsWindow::on_buttonBox_accepted()
settings.setValue("core/checksdstatus", ui->sdbox->isChecked());
settings.setValue("core/dtr", ui->dtrbox->isChecked());
settings.setValue("printer/firmware", ui->firmwarecombo->currentIndex());
+ settings.setValue("user/supresswait", ui->supresswaitbox->isChecked());
emit updatesettings();
}
diff --git a/settingswindow.ui b/settingswindow.ui
index f155e87..bbad3f6 100644
--- a/settingswindow.ui
+++ b/settingswindow.ui
@@ -6,8 +6,8 @@
0
0
- 483
- 341
+ 484
+ 357
@@ -59,6 +59,13 @@
+ -
+
+
+ ms
+
+
+
-
@@ -100,10 +107,10 @@
- -
-
+
-
+
- ms
+ Status
@@ -117,6 +124,13 @@
+ -
+
+
+ Check SD printing status
+
+
+
-
@@ -139,20 +153,6 @@
- -
-
-
- Status
-
-
-
- -
-
-
- Check SD printing status
-
-
-
-
@@ -173,6 +173,13 @@
+ -
+
+
+ Supress "wait" responce
+
+
+