浏览代码

Merge pull request #5108 from MagoKimbra/Fix_M420

Fix Command M420
Scott Lahteine 7 年前
父节点
当前提交
d095c7933b
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5
    2
      Marlin/Marlin_main.cpp

+ 5
- 2
Marlin/Marlin_main.cpp 查看文件

@@ -8125,10 +8125,13 @@ void process_next_command() {
8125 8125
           break;
8126 8126
       #endif // ENABLED(FILAMENT_WIDTH_SENSOR)
8127 8127
 
8128
-      #if ENABLED(MESH_BED_LEVELING)
8129
-        case 420: // M420: Enable/Disable Mesh Bed Leveling
8128
+      #if PLANNER_LEVELING
8129
+        case 420: // M420: Enable/Disable Bed Leveling
8130 8130
           gcode_M420();
8131 8131
           break;
8132
+      #endif
8133
+
8134
+      #if ENABLED(MESH_BED_LEVELING)
8132 8135
         case 421: // M421: Set a Mesh Bed Leveling Z coordinate
8133 8136
           gcode_M421();
8134 8137
           break;

正在加载...
取消
保存