|
@@ -486,9 +486,9 @@ void GcodeSuite::M422() {
|
486
|
486
|
return;
|
487
|
487
|
}
|
488
|
488
|
|
489
|
|
- const bool is_probe_point = parser.seen('S');
|
|
489
|
+ const bool is_probe_point = parser.seen_test('S');
|
490
|
490
|
|
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'))) {
|
492
|
492
|
SERIAL_ECHOLNPGM("?(S) and (W) may not be combined.");
|
493
|
493
|
return;
|
494
|
494
|
}
|
|
@@ -498,7 +498,7 @@ void GcodeSuite::M422() {
|
498
|
498
|
z_stepper_align.xy
|
499
|
499
|
);
|
500
|
500
|
|
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'))) {
|
502
|
502
|
SERIAL_ECHOLNPGM("?(S)" TERN_(HAS_Z_STEPPER_ALIGN_STEPPER_XY, " or (W)") " is required.");
|
503
|
503
|
return;
|
504
|
504
|
}
|