Skip to content

Commit

Permalink
"planner.leveling_active" change to "true"
Browse files Browse the repository at this point in the history
Per recommendation from tombrazier , change optional argument from "planner.leveling_active"  to "true".

Testing shows same results.
  • Loading branch information
Bob-the-Kuhn committed Aug 27, 2022
1 parent 597c436 commit e1b20ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/src/feature/bedlevel/bedlevel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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, planner.leveling_active); // Physical position with all modifiers
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, planner.leveling_active); // Logical position with modifiers removed
planner.unapply_modifiers(current_position, true); // Logical position with modifiers removed

sync_plan_position();
_report_leveling();
Expand Down

0 comments on commit e1b20ee

Please sign in to comment.