Skip to content

Commit 6aee2c7

Browse files
committed
⚡️ Use seen_test in M422
1 parent bb2f100 commit 6aee2c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Marlin/src/gcode/calibrate/G34_M422.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -486,9 +486,9 @@ void GcodeSuite::M422() {
486486
return;
487487
}
488488

489-
const bool is_probe_point = parser.seen('S');
489+
const bool is_probe_point = parser.seen_test('S');
490490

491-
if (TERN0(HAS_Z_STEPPER_ALIGN_STEPPER_XY, is_probe_point && parser.seen('W'))) {
491+
if (TERN0(HAS_Z_STEPPER_ALIGN_STEPPER_XY, is_probe_point && parser.seen_test('W'))) {
492492
SERIAL_ECHOLNPGM("?(S) and (W) may not be combined.");
493493
return;
494494
}
@@ -498,7 +498,7 @@ void GcodeSuite::M422() {
498498
z_stepper_align.xy
499499
);
500500

501-
if (!is_probe_point && TERN1(HAS_Z_STEPPER_ALIGN_STEPPER_XY, !parser.seen('W'))) {
501+
if (!is_probe_point && TERN1(HAS_Z_STEPPER_ALIGN_STEPPER_XY, !parser.seen_test('W'))) {
502502
SERIAL_ECHOLNPGM("?(S)" TERN_(HAS_Z_STEPPER_ALIGN_STEPPER_XY, " or (W)") " is required.");
503503
return;
504504
}

0 commit comments

Comments
 (0)