[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:
parent
3550494db1
commit
d86efae37c
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user