|
@@ -205,14 +205,15 @@ void GcodeSuite::G28(const bool always_home_all) {
|
205
|
205
|
// Wait for planner moves to finish!
|
206
|
206
|
planner.synchronize();
|
207
|
207
|
|
208
|
|
- // Cancel the active G29 session
|
209
|
|
- #if ENABLED(PROBE_MANUALLY)
|
210
|
|
- extern bool g29_in_progress;
|
211
|
|
- g29_in_progress = false;
|
212
|
|
- #endif
|
213
|
|
-
|
214
|
208
|
// Disable the leveling matrix before homing
|
215
|
209
|
#if HAS_LEVELING
|
|
210
|
+
|
|
211
|
+ // Cancel the active G29 session
|
|
212
|
+ #if ENABLED(PROBE_MANUALLY)
|
|
213
|
+ extern bool g29_in_progress;
|
|
214
|
+ g29_in_progress = false;
|
|
215
|
+ #endif
|
|
216
|
+
|
216
|
217
|
#if ENABLED(RESTORE_LEVELING_AFTER_G28)
|
217
|
218
|
const bool leveling_was_active = planner.leveling_active;
|
218
|
219
|
#endif
|