From ad60cdd03067877bfa453a0b18b2dd044802b55e Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Fri, 26 Jul 2024 02:40:35 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20G42=20P=20as=20flag=20(not=20boo?= =?UTF-8?q?l)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Marlin/src/gcode/bedlevel/G42.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/src/gcode/bedlevel/G42.cpp b/Marlin/src/gcode/bedlevel/G42.cpp index 193131ee4c17..2a4737e8a76c 100644 --- a/Marlin/src/gcode/bedlevel/G42.cpp +++ b/Marlin/src/gcode/bedlevel/G42.cpp @@ -37,7 +37,7 @@ * F : Feedrate in mm/min * I : X axis point index * J : Y axis point index - * P : Flag to put the prove at the given point + * P : Flag to put the probe at the given point */ void GcodeSuite::G42() { if (MOTION_CONDITIONS) { @@ -58,7 +58,7 @@ void GcodeSuite::G42() { if (hasJ) destination.y = bedlevel.get_mesh_y(iy); #if HAS_PROBE_XY_OFFSET - if (parser.boolval('P')) { + if (parser.seen_test('P')) { if (hasI) destination.x -= probe.offset_xy.x; if (hasJ) destination.y -= probe.offset_xy.y; }