Browse Source

Fix mesh leveling compile errors (#11768)

InsanityAutomation 7 years ago
parent
commit
bad225dc04
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      Marlin/src/gcode/calibrate/G28.cpp

+ 2
- 1
Marlin/src/gcode/calibrate/G28.cpp View File

207
 
207
 
208
   // Cancel the active G29 session
208
   // Cancel the active G29 session
209
   #if ENABLED(PROBE_MANUALLY)
209
   #if ENABLED(PROBE_MANUALLY)
210
+    extern bool g29_in_progress;
210
     g29_in_progress = false;
211
     g29_in_progress = false;
211
   #endif
212
   #endif
212
 
213
 
397
     do_blocking_move_to_z(delta_clip_start_height);
398
     do_blocking_move_to_z(delta_clip_start_height);
398
   #endif
399
   #endif
399
 
400
 
400
-  #if ENABLED(RESTORE_LEVELING_AFTER_G28)
401
+  #if HAS_LEVELING && ENABLED(RESTORE_LEVELING_AFTER_G28)
401
     set_bed_leveling_enabled(leveling_was_active);
402
     set_bed_leveling_enabled(leveling_was_active);
402
   #endif
403
   #endif
403
 
404
 

Loading…
Cancel
Save