From 2ddafb2160eccbc0219efb7ea1d634f3aa6eacc1 Mon Sep 17 00:00:00 2001 From: ThomasToka Date: Mon, 4 Aug 2025 00:41:55 +0200 Subject: [PATCH] UBL update ui_api.cpp Fix ui_api check --- Marlin/src/lcd/extui/ui_api.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/src/lcd/extui/ui_api.cpp b/Marlin/src/lcd/extui/ui_api.cpp index 17e913a9dec5..139da062a2c3 100644 --- a/Marlin/src/lcd/extui/ui_api.cpp +++ b/Marlin/src/lcd/extui/ui_api.cpp @@ -883,8 +883,8 @@ namespace ExtUI { void moveToMeshPoint(const xy_uint8_t &pos, const_float_t z) { #if ANY(MESH_BED_LEVELING, AUTO_BED_LEVELING_UBL) REMEMBER(fr, feedrate_mm_s); - const float x_target = MESH_MIN_X + pos.x * (TERN(AUTO_BED_LEVELING_UBL, bedlevel.mesh_dist.x, MESH_X_DIST)), - y_target = MESH_MIN_Y + pos.y * (TERN(AUTO_BED_LEVELING_UBL, bedlevel.mesh_dist.y, MESH_Y_DIST)); + const float x_target = MESH_MIN_X + pos.x * (TERN(VARIABLE_GRID_POINTS, bedlevel.mesh_dist.x, MESH_X_DIST)); + const float y_target = MESH_MIN_Y + pos.y * (TERN(VARIABLE_GRID_POINTS, bedlevel.mesh_dist.y, MESH_Y_DIST)); if (x_target != current_position.x || y_target != current_position.y) { // If moving across bed, raise nozzle to safe height over bed feedrate_mm_s = z_probe_fast_mm_s;