Parcourir la source

⚡️ Use seen_test in `M422`

Scott Lahteine il y a 3 ans
Parent
révision
6aee2c755b
1 fichiers modifiés avec 3 ajouts et 3 suppressions
  1. 3
    3
      Marlin/src/gcode/calibrate/G34_M422.cpp

+ 3
- 3
Marlin/src/gcode/calibrate/G34_M422.cpp Voir le fichier

@@ -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
   }

Chargement…
Annuler
Enregistrer