From a10e81dc2a86367b079b1b0ee95a6190acd372ba Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Mon, 10 Oct 2016 17:05:40 -0500 Subject: [PATCH] Minor cleanup of set_bed_leveling_enabled --- Marlin/Marlin_main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 127ee8cd11..e52e0fc889 100755 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -2225,8 +2225,8 @@ static void clean_up_after_endstop_or_probe_move() { #elif HAS_ABL if (enable != planner.abl_enabled) { - planner.abl_enabled = !planner.abl_enabled; - if (!planner.abl_enabled) + planner.abl_enabled = enable; + if (!enable) set_current_from_steppers_for_axis( #if ABL_PLANAR ALL_AXES