[2.0.x] report error on unsupported commands (#10553)

Raise an error when an unknown/unsupported G/M command is requires.

This will address #10546
This commit is contained in:
Giuliano 2018-04-28 00:40:27 +02:00 committed by Roxy-3D
parent a474a7e675
commit 2e1939e85c

View File

@ -277,6 +277,8 @@ void GcodeSuite::process_parsed_command(
#if ENABLED(DEBUG_GCODE_PARSER)
case 800: parser.debug(); break; // G800: GCode Parser Test for G
#endif
default: parser.unknown_command_error(); break;
}
break;
@ -655,6 +657,8 @@ void GcodeSuite::process_parsed_command(
#endif
case 999: M999(); break; // M999: Restart after being Stopped
default: parser.unknown_command_error(); break;
}
break;