瀏覽代碼

Fix Command M420

MagoKimbra 8 年之前
父節點
當前提交
dfcdbb437b
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5
    2
      Marlin/Marlin_main.cpp

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

8125
           break;
8125
           break;
8126
       #endif // ENABLED(FILAMENT_WIDTH_SENSOR)
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
           gcode_M420();
8130
           gcode_M420();
8131
           break;
8131
           break;
8132
+      #endif
8133
+
8134
+      #if ENABLED(MESH_BED_LEVELING)
8132
         case 421: // M421: Set a Mesh Bed Leveling Z coordinate
8135
         case 421: // M421: Set a Mesh Bed Leveling Z coordinate
8133
           gcode_M421();
8136
           gcode_M421();
8134
           break;
8137
           break;

Loading…
取消
儲存