[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:
parent
a474a7e675
commit
2e1939e85c
|
@ -277,6 +277,8 @@ void GcodeSuite::process_parsed_command(
|
||||||
#if ENABLED(DEBUG_GCODE_PARSER)
|
#if ENABLED(DEBUG_GCODE_PARSER)
|
||||||
case 800: parser.debug(); break; // G800: GCode Parser Test for G
|
case 800: parser.debug(); break; // G800: GCode Parser Test for G
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
default: parser.unknown_command_error(); break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -655,6 +657,8 @@ void GcodeSuite::process_parsed_command(
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
case 999: M999(); break; // M999: Restart after being Stopped
|
case 999: M999(); break; // M999: Restart after being Stopped
|
||||||
|
|
||||||
|
default: parser.unknown_command_error(); break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue