Add G38.4 and G38.5 (#13348)

This commit is contained in:
Michiel Baird
2019-03-10 15:22:09 -07:00
committed by Scott Lahteine
parent e4d080e63c
commit b824a517aa
80 changed files with 732 additions and 264 deletions

View File

@ -258,9 +258,14 @@ void GcodeSuite::process_parsed_command(
#endif
#if ENABLED(G38_PROBE_TARGET)
case 38: // G38.2 & G38.3: Probe towards target
if (parser.subcode == 2 || parser.subcode == 3)
G38(parser.subcode == 2);
case 38: // G38.2, G38.3: Probe towards target
if (WITHIN(parser.subcode, 2,
#if ENABLED(G38_PROBE_AWAY)
5
#else
3
#endif
)) G38(parser.subcode); // G38.4, G38.5: Probe away from target
break;
#endif