瀏覽代碼

Fix mesh leveling compile errors (#11768)

InsanityAutomation 6 年之前
父節點
當前提交
bad225dc04
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      Marlin/src/gcode/calibrate/G28.cpp

+ 2
- 1
Marlin/src/gcode/calibrate/G28.cpp 查看文件

@@ -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…
取消
儲存