Sfoglia il codice sorgente

Fix mesh leveling compile errors (#11768)

InsanityAutomation 6 anni fa
parent
commit
bad225dc04
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2
    1
      Marlin/src/gcode/calibrate/G28.cpp

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

@@ -207,6 +207,7 @@ void GcodeSuite::G28(const bool always_home_all) {
207 207
 
208 208
   // Cancel the active G29 session
209 209
   #if ENABLED(PROBE_MANUALLY)
210
+    extern bool g29_in_progress;
210 211
     g29_in_progress = false;
211 212
   #endif
212 213
 
@@ -397,7 +398,7 @@ void GcodeSuite::G28(const bool always_home_all) {
397 398
     do_blocking_move_to_z(delta_clip_start_height);
398 399
   #endif
399 400
 
400
-  #if ENABLED(RESTORE_LEVELING_AFTER_G28)
401
+  #if HAS_LEVELING && ENABLED(RESTORE_LEVELING_AFTER_G28)
401 402
     set_bed_leveling_enabled(leveling_was_active);
402 403
   #endif
403 404
 

Loading…
Annulla
Salva