Skip to content

Commit

Permalink
🚸 G42 P as flag (not bool)
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Jul 26, 2024
1 parent 78e111a commit ad60cdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Marlin/src/gcode/bedlevel/G42.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
* F<feedrate> : Feedrate in mm/min
* I<index> : X axis point index
* J<index> : Y axis point index
* P<bool> : 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) {
Expand All @@ -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;
}
Expand Down

0 comments on commit ad60cdd

Please sign in to comment.