Bläddra i källkod

⚡️ Use seen_test in `M422`

Scott Lahteine 3 år sedan
förälder
incheckning
6aee2c755b
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3
    3
      Marlin/src/gcode/calibrate/G34_M422.cpp

+ 3
- 3
Marlin/src/gcode/calibrate/G34_M422.cpp Visa fil

486
     return;
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
     SERIAL_ECHOLNPGM("?(S) and (W) may not be combined.");
492
     SERIAL_ECHOLNPGM("?(S) and (W) may not be combined.");
493
     return;
493
     return;
494
   }
494
   }
498
     z_stepper_align.xy
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
     SERIAL_ECHOLNPGM("?(S)" TERN_(HAS_Z_STEPPER_ALIGN_STEPPER_XY, " or (W)") " is required.");
502
     SERIAL_ECHOLNPGM("?(S)" TERN_(HAS_Z_STEPPER_ALIGN_STEPPER_XY, " or (W)") " is required.");
503
     return;
503
     return;
504
   }
504
   }

Laddar…
Avbryt
Spara