Fix UBL regression (#24622)

Fix regression from #24188
This commit is contained in:
Bob Kuhn
2022-09-22 12:54:49 -05:00
committed by GitHub
parent 4f299bf867
commit a4297ff492
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -75,9 +75,9 @@ void set_bed_leveling_enabled(const bool enable/*=true*/) {
planner.synchronize();
// Get the corrected leveled / unleveled position
planner.apply_modifiers(current_position); // Physical position with all modifiers
planner.leveling_active ^= true; // Toggle leveling between apply and unapply
planner.unapply_modifiers(current_position); // Logical position with modifiers removed
planner.apply_modifiers(current_position, true); // Physical position with all modifiers
planner.leveling_active ^= true; // Toggle leveling between apply and unapply
planner.unapply_modifiers(current_position, true); // Logical position with modifiers removed
sync_plan_position();
_report_leveling();