Browse Source

Merge pull request #5108 from MagoKimbra/Fix_M420

Fix Command M420
Scott Lahteine 7 years ago
parent
commit
d095c7933b
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      Marlin/Marlin_main.cpp

+ 5
- 2
Marlin/Marlin_main.cpp View File

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…
Cancel
Save