[1.1.x] report error on unsupported commands (#10554)

Raise an error when an unknown/unsupported G/M command is requires.
This commit is contained in:
Giuliano 2018-04-28 00:40:32 +02:00 committed by Roxy-3D
parent 3550494db1
commit d86efae37c

View File

@ -12061,6 +12061,8 @@ void 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;
@ -12418,6 +12420,8 @@ void process_parsed_command() {
#endif
case 999: gcode_M999(); break; // M999: Restart after being Stopped
default: parser.unknown_command_error();
}
break;