From d04258753be42038969780a793e98343ab677e48 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Wed, 14 Dec 2016 00:41:35 -0800 Subject: [PATCH] Don't throw away the bed level matrix on G28 --- Marlin/Marlin_main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 63d63ef8e..c6d595d18 100755 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -3430,9 +3430,9 @@ inline void gcode_G28() { // Wait for planner moves to finish! stepper.synchronize(); - // For auto bed leveling, clear the level matrix - #if HAS_ABL - reset_bed_level(); + // Disable the leveling matrix before homing + #if PLANNER_LEVELING + set_bed_leveling_enabled(false); #endif // Always home with tool 0 active