Browse Source

Fix UBL regression (#24622)

Fix regression from #24188
Bob Kuhn 1 year ago
parent
commit
a4297ff492
No account linked to committer's email address

+ 3
- 3
Marlin/src/feature/bedlevel/bedlevel.cpp View File

@@ -75,9 +75,9 @@ void set_bed_leveling_enabled(const bool enable/*=true*/) {
75 75
     planner.synchronize();
76 76
 
77 77
     // Get the corrected leveled / unleveled position
78
-    planner.apply_modifiers(current_position);    // Physical position with all modifiers
79
-    planner.leveling_active ^= true;              // Toggle leveling between apply and unapply
80
-    planner.unapply_modifiers(current_position);  // Logical position with modifiers removed
78
+    planner.apply_modifiers(current_position, true);    // Physical position with all modifiers
79
+    planner.leveling_active ^= true;                    // Toggle leveling between apply and unapply
80
+    planner.unapply_modifiers(current_position, true);  // Logical position with modifiers removed
81 81
 
82 82
     sync_plan_position();
83 83
     _report_leveling();

+ 1
- 1
Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp View File

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

Loading…
Cancel
Save