1
0
mirror of https://github.com/bdring/Grbl_Esp32.git synced 2025-09-01 10:23:19 +02:00

Changed the sleep to 10 minutes.

This commit is contained in:
Stefan de Bruijn
2020-11-07 20:53:08 +01:00
parent c242b85fa8
commit 5c26d20d19

View File

@@ -87,7 +87,9 @@ void grbl_init() {
// Should grbl_sendf always work? Serial is initialized first, so after line 34 it should.
grbl_msg_sendf(CLIENT_ALL, MsgLevel::Error, "Critical error in run_once: %s", ex.stackTrace.c_str());
sleep(10000);
for (int i = 0; i < 60; ++i) {
sleep(10000);
}
throw;
}
}
@@ -136,7 +138,9 @@ void run_once() {
} catch (const AssertionFailed& ex) {
// This means something is terribly broken:
grbl_msg_sendf(CLIENT_ALL, MsgLevel::Error, "Critical error in run_once: %s", ex.stackTrace.c_str());
sleep(10000);
for (int i = 0; i < 60; ++i) {
sleep(10000);
}
throw;
}
}