|
@ -327,13 +327,8 @@ void GcodeSuite::process_parsed_command(const bool no_ok/*=false*/) { |
|
|
|
|
|
|
|
|
#if ENABLED(G38_PROBE_TARGET) |
|
|
#if ENABLED(G38_PROBE_TARGET) |
|
|
case 38: // G38.2, G38.3: Probe towards target
|
|
|
case 38: // G38.2, G38.3: Probe towards target
|
|
|
if (WITHIN(parser.subcode, 2, |
|
|
if (WITHIN(parser.subcode, 2, TERN(G38_PROBE_AWAY, 5, 3))) |
|
|
#if ENABLED(G38_PROBE_AWAY) |
|
|
G38(parser.subcode); // G38.4, G38.5: Probe away from target
|
|
|
5 |
|
|
|
|
|
#else |
|
|
|
|
|
3 |
|
|
|
|
|
#endif |
|
|
|
|
|
)) G38(parser.subcode); // G38.4, G38.5: Probe away from target
|
|
|
|
|
|
break; |
|
|
break; |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
@ -485,14 +480,10 @@ void GcodeSuite::process_parsed_command(const bool no_ok/*=false*/) { |
|
|
case 108: M108(); break; // M108: Cancel Waiting
|
|
|
case 108: M108(); break; // M108: Cancel Waiting
|
|
|
case 112: M112(); break; // M112: Full Shutdown
|
|
|
case 112: M112(); break; // M112: Full Shutdown
|
|
|
case 410: M410(); break; // M410: Quickstop - Abort all the planned moves.
|
|
|
case 410: M410(); break; // M410: Quickstop - Abort all the planned moves.
|
|
|
#if ENABLED(HOST_PROMPT_SUPPORT) |
|
|
TERN_(HOST_PROMPT_SUPPORT, case 876:) // M876: Handle Host prompt responses
|
|
|
case 876: M876(); break; // M876: Handle Host prompt responses
|
|
|
|
|
|
#endif |
|
|
|
|
|
#else |
|
|
#else |
|
|
case 108: case 112: case 410: |
|
|
case 108: case 112: case 410: |
|
|
#if ENABLED(HOST_PROMPT_SUPPORT) |
|
|
TERN_(HOST_PROMPT_SUPPORT, case 876:) |
|
|
case 876: |
|
|
|
|
|
#endif |
|
|
|
|
|
break; |
|
|
break; |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|