Merge pull request #2193 from thinkyhead/ignore_unrecognized_commands

Ignore unknown commands if they start with G, M, or T
This commit is contained in:
Scott Lahteine 2015-05-28 22:03:48 -07:00
commit 1a882bcc2e

View File

@ -5297,8 +5297,6 @@ void process_next_command() {
case 92: // G92
gcode_G92();
break;
default: code_is_good = false;
}
break;
@ -5389,8 +5387,6 @@ void process_next_command() {
gcode_M109();
break;
case 110: break; // M110: Set line number - don't show "unknown command"
#if HAS_TEMP_BED
case 190: // M190: Wait for bed heater to reach target
gcode_M190();
@ -5731,14 +5727,14 @@ void process_next_command() {
case 999: // M999: Restart after being Stopped
gcode_M999();
break;
default: code_is_good = false;
}
break;
case 'T':
gcode_T(codenum);
break;
default: code_is_good = false;
}
ExitUnknownCommand: