Browse Source

🐛 Fix UBL regression (#24622)

Fix regression from #24188
FB4S_WIFI^2^2
Bob Kuhn 2 years ago
committed by Scott Lahteine
parent
commit
e350acb360
  1. 6
      Marlin/src/feature/bedlevel/bedlevel.cpp
  2. 2
      Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp

6
Marlin/src/feature/bedlevel/bedlevel.cpp

@ -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();

2
Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp

@ -407,7 +407,7 @@ void unified_bed_leveling::G29() {
z_values[x][x2] += 9.999f; // We want the altered line several mesh points thick
#if ENABLED(EXTENSIBLE_UI)
ExtUI::onMeshUpdate(x, x, z_values[x][x]);
ExtUI::onMeshUpdate(x, (x2), z_values[x][x2]);
ExtUI::onMeshUpdate(x, x2, z_values[x][x2]);
#endif
}
break;

Loading…
Cancel
Save