1
0
mirror of https://github.com/bdring/Grbl_Esp32.git synced 2025-09-01 18:32:37 +02:00

Fixed ^x problem

It was working only the first time, due to code that was added to
prevent endless reset loops on asserts.
This commit is contained in:
Mitch Bradley
2021-07-06 22:03:29 -10:00
parent e85c6a2b93
commit fabfe11269

View File

@@ -195,7 +195,9 @@ void run_once() {
error_all("Stacktrace: %s", ex.stackTrace.c_str()); error_all("Stacktrace: %s", ex.stackTrace.c_str());
sys.state = State::ConfigAlarm; sys.state = State::ConfigAlarm;
} }
if (++tries > 1) { // sys.abort is a user-initiated exit via ^x so we don't limit the number of occurrences
if (!sys.abort && ++tries > 1) {
info_serial("Stalling due to too many failures");
while (1) {} while (1) {}
} }
// This is inside a loop in Grbl_Esp32.ino // This is inside a loop in Grbl_Esp32.ino