From dfcdbb437bc07d09761d152cfbb24a18b87b7f3d Mon Sep 17 00:00:00 2001 From: MagoKimbra Date: Fri, 28 Oct 2016 20:53:48 +0200 Subject: [PATCH] Fix Command M420 --- Marlin/Marlin_main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index a219701562..a54b8c5f4c 100755 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -8125,10 +8125,13 @@ void process_next_command() { break; #endif // ENABLED(FILAMENT_WIDTH_SENSOR) - #if ENABLED(MESH_BED_LEVELING) - case 420: // M420: Enable/Disable Mesh Bed Leveling + #if PLANNER_LEVELING + case 420: // M420: Enable/Disable Bed Leveling gcode_M420(); break; + #endif + + #if ENABLED(MESH_BED_LEVELING) case 421: // M421: Set a Mesh Bed Leveling Z coordinate gcode_M421(); break;