Browse Source

[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
pull/1/head
Giuliano 7 years ago
committed by Roxy-3D
parent
commit
2e1939e85c
  1. 4
      Marlin/src/gcode/gcode.cpp

4
Marlin/src/gcode/gcode.cpp

@ -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…
Cancel
Save