|
@@ -327,13 +327,8 @@ void GcodeSuite::process_parsed_command(const bool no_ok/*=false*/) {
|
327
|
327
|
|
328
|
328
|
#if ENABLED(G38_PROBE_TARGET)
|
329
|
329
|
case 38: // G38.2, G38.3: Probe towards target
|
330
|
|
- if (WITHIN(parser.subcode, 2,
|
331
|
|
- #if ENABLED(G38_PROBE_AWAY)
|
332
|
|
- 5
|
333
|
|
- #else
|
334
|
|
- 3
|
335
|
|
- #endif
|
336
|
|
- )) G38(parser.subcode); // G38.4, G38.5: Probe away from target
|
|
330
|
+ if (WITHIN(parser.subcode, 2, TERN(G38_PROBE_AWAY, 5, 3)))
|
|
331
|
+ G38(parser.subcode); // G38.4, G38.5: Probe away from target
|
337
|
332
|
break;
|
338
|
333
|
#endif
|
339
|
334
|
|
|
@@ -485,14 +480,10 @@ void GcodeSuite::process_parsed_command(const bool no_ok/*=false*/) {
|
485
|
480
|
case 108: M108(); break; // M108: Cancel Waiting
|
486
|
481
|
case 112: M112(); break; // M112: Full Shutdown
|
487
|
482
|
case 410: M410(); break; // M410: Quickstop - Abort all the planned moves.
|
488
|
|
- #if ENABLED(HOST_PROMPT_SUPPORT)
|
489
|
|
- case 876: M876(); break; // M876: Handle Host prompt responses
|
490
|
|
- #endif
|
|
483
|
+ TERN_(HOST_PROMPT_SUPPORT, case 876:) // M876: Handle Host prompt responses
|
491
|
484
|
#else
|
492
|
485
|
case 108: case 112: case 410:
|
493
|
|
- #if ENABLED(HOST_PROMPT_SUPPORT)
|
494
|
|
- case 876:
|
495
|
|
- #endif
|
|
486
|
+ TERN_(HOST_PROMPT_SUPPORT, case 876:)
|
496
|
487
|
break;
|
497
|
488
|
#endif
|
498
|
489
|
|