From c75693af3883df5d04a58cb7a589b5d161e84d10 Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Fri, 31 Aug 2012 13:51:09 +0200 Subject: [PATCH] gcode_process.c: remove support for M109. This was deprecated in the wiki quite a while ago. Use M104, followed by a M116, instead. This saves a whopping 250 bytes binary size. --- gcode_process.c | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/gcode_process.c b/gcode_process.c index 1101028..b6e70ea 100644 --- a/gcode_process.c +++ b/gcode_process.c @@ -526,30 +526,6 @@ void process_gcode_command() { #endif break; - case 109: - //? --- M109: Set Extruder Temperature --- - //? - //? Example: M109 S190 - //? - //? Set the temperature of the current extruder to 190oC and wait for it to reach that value before sending an acknowledgment to the host. In fact the RepRap firmware waits a while after the temperature has been reached for the extruder to stabilise - typically about 40 seconds. This can be changed by a parameter in the firmware configuration file when the firmware is compiled. See also M104 and M116. - //? - //? Teacup supports an optional P parameter as a sensor index to address. - //? - if ( ! next_target.seen_S) - break; - if ( ! next_target.seen_P) - next_target.P = HEATER_EXTRUDER; - temp_set(next_target.P, next_target.S); - if (next_target.S) { - power_on(); - enable_heater(); - } - else { - disable_heater(); - } - enqueue(NULL); - break; - case 110: //? --- M110: Set Current Line Number --- //?