浏览代码

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

正在加载...
取消
保存