From cc4d3a215ea57007a846d9ea760dcb06a8a5b958 Mon Sep 17 00:00:00 2001 From: InsanityAutomation <38436470+InsanityAutomation@users.noreply.github.com> Date: Mon, 28 Oct 2019 16:50:27 -0400 Subject: [PATCH] Fix ExtUI UBL method calls (#15704) --- Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp b/Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp index 69c3d2d99..57256b907 100644 --- a/Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp +++ b/Marlin/src/feature/bedlevel/ubl/ubl_G29.cpp @@ -338,7 +338,7 @@ } z_values[cpos.x][cpos.y] = NAN; #if ENABLED(EXTENSIBLE_UI) - ExtUI::onMeshUpdate(closest, 0); + ExtUI::onMeshUpdate(cpos, 0.0f); #endif cnt++; } @@ -541,7 +541,7 @@ else { z_values[cpos.x][cpos.y] = g29_constant; #if ENABLED(EXTENSIBLE_UI) - ExtUI::onMeshUpdate(closest, g29_constant); + ExtUI::onMeshUpdate(cpos, g29_constant); #endif } } @@ -783,7 +783,7 @@ ); z_values[best.pos.x][best.pos.y] = measured_z; #if ENABLED(EXTENSIBLE_UI) - ExtUI::onMeshUpdate(best, measured_z); + ExtUI::onMeshUpdate(best.pos, measured_z); #endif } SERIAL_FLUSH(); // Prevent host M105 buffer overrun. @@ -1335,7 +1335,7 @@ if (!isnan(v2)) { z_values[x][y] = v1 < v2 ? v1 : v1 + v1 - v2; #if ENABLED(EXTENSIBLE_UI) - ExtUI::onMeshUpdate(x, y, z_values[pos.x][pos.y]); + ExtUI::onMeshUpdate(x, y, z_values[x][y]); #endif return true; }