diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 39941d8fc6c8..f41dd027896f 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -2552,6 +2552,16 @@ inline void gcode_G4() { #endif //FWRETRACT +/** + * G26: Allow G-codes to enter the buffer again after a PROBE_FAIL_PANIC occurs during a G29 + */ +#if ENABLED(PROBE_FAIL_PANIC) + inline void gcode_G26() { + LCD_MESSAGEPGM(WELCOME_MSG); + probe_fail = false; + } +#endif + /** * G28: Home all axes according to settings * @@ -6598,6 +6608,12 @@ void process_next_command() { #endif //FWRETRACT + #if ENABLED(PROBE_FAIL_PANIC) + case 26: // G26: Allow G-codes to enter the buffer again after a PROBE_FAIL_PANIC occurs during a G29 + gcode_G26(); + break; + #endif + case 28: // G28: Home all axes, one at a time gcode_G28(); break;