Browse Source

Ignore unknown commands if they start with G, M, or T

pull/1/head
Scott Lahteine 10 years ago
parent
commit
068d4a1eb2
  1. 8
      Marlin/Marlin_main.cpp

8
Marlin/Marlin_main.cpp

@ -5301,7 +5301,7 @@ void process_next_command() {
gcode_G92(); gcode_G92();
break; break;
default: code_is_good = false; // default: code_is_good = false;
} }
break; break;
@ -5392,8 +5392,6 @@ void process_next_command() {
gcode_M109(); gcode_M109();
break; break;
case 110: break; // M110: Set line number - don't show "unknown command"
#if HAS_TEMP_BED #if HAS_TEMP_BED
case 190: // M190: Wait for bed heater to reach target case 190: // M190: Wait for bed heater to reach target
gcode_M190(); gcode_M190();
@ -5735,13 +5733,15 @@ void process_next_command() {
gcode_M999(); gcode_M999();
break; break;
default: code_is_good = false; // default: code_is_good = false;
} }
break; break;
case 'T': case 'T':
gcode_T(codenum); gcode_T(codenum);
break; break;
default: code_is_good = false;
} }
ExitUnknownCommand: ExitUnknownCommand:

Loading…
Cancel
Save