Browse Source

[2.0.x] Fix undefined symbol 'g29_in_progress' (#11781)

Alexander Amelkin 7 years ago
parent
commit
bc1ba998b2
1 changed files with 7 additions and 6 deletions
  1. 7
    6
      Marlin/src/gcode/calibrate/G28.cpp

+ 7
- 6
Marlin/src/gcode/calibrate/G28.cpp View File

@@ -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

Loading…
Cancel
Save