mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2026-01-08 15:47:44 -07:00
🚸 G42 P as flag (not bool)
This commit is contained in:
parent
78e111a4d0
commit
ad60cdd030
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue