1
0
mirror of https://github.com/bdring/Grbl_Esp32.git synced 2025-09-02 02:42:36 +02:00

Fix hang on error 20 from SD/Run

This commit is contained in:
Mitch Bradley
2020-12-09 20:55:31 -10:00
parent f518a4945c
commit 37e2efb2cb

View File

@@ -239,6 +239,7 @@ void report_status_message(Error status_code, uint8_t client) {
grbl_sendf(client, "error:%d\r\n", status_code); // most senders seem to tolerate this error and keep on going
grbl_sendf(CLIENT_ALL, "error:%d in SD file at line %d\r\n", status_code, sd_get_current_line_number());
// don't close file
SD_ready_next = true; // flag so system_execute_line() will send the next line
} else {
grbl_notifyf("SD print error", "Error:%d during SD file at line: %d", status_code, sd_get_current_line_number());
grbl_sendf(CLIENT_ALL, "error:%d in SD file at line %d\r\n", status_code, sd_get_current_line_number());