|
@@ -211,7 +211,7 @@ void GcodeSuite::dwell(millis_t time) {
|
211
|
211
|
* When G29_RETRY_AND_RECOVER is enabled, call G29() in
|
212
|
212
|
* a loop with recovery and retry handling.
|
213
|
213
|
*/
|
214
|
|
-#if BOTH(HAS_LEVELING, G29_RETRY_AND_RECOVER)
|
|
214
|
+#if ENABLED(G29_RETRY_AND_RECOVER)
|
215
|
215
|
|
216
|
216
|
void GcodeSuite::event_probe_recover() {
|
217
|
217
|
TERN_(HOST_PROMPT_SUPPORT, host_prompt_do(PROMPT_INFO, PSTR("G29 Retrying"), DISMISS_STR));
|
|
@@ -223,6 +223,10 @@ void GcodeSuite::dwell(millis_t time) {
|
223
|
223
|
#endif
|
224
|
224
|
}
|
225
|
225
|
|
|
226
|
+ #if ENABLED(G29_HALT_ON_FAILURE)
|
|
227
|
+ #include "../lcd/marlinui.h"
|
|
228
|
+ #endif
|
|
229
|
+
|
226
|
230
|
void GcodeSuite::event_probe_failure() {
|
227
|
231
|
#ifdef ACTION_ON_G29_FAILURE
|
228
|
232
|
host_action(PSTR(ACTION_ON_G29_FAILURE));
|
|
@@ -262,7 +266,7 @@ void GcodeSuite::dwell(millis_t time) {
|
262
|
266
|
#endif
|
263
|
267
|
}
|
264
|
268
|
|
265
|
|
-#endif // HAS_LEVELING && G29_RETRY_AND_RECOVER
|
|
269
|
+#endif // G29_RETRY_AND_RECOVER
|
266
|
270
|
|
267
|
271
|
/**
|
268
|
272
|
* Process the parsed command and dispatch it to its handler
|