From d6644af18f90d530d0a3a1dd6c573b3579000626 Mon Sep 17 00:00:00 2001 From: Michael Moon Date: Wed, 24 Nov 2010 09:37:01 +1100 Subject: [PATCH] cause M101/M103 to work with DC extruders --- gcode_process.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gcode_process.c b/gcode_process.c index eda112f..19591f8 100644 --- a/gcode_process.c +++ b/gcode_process.c @@ -174,7 +174,9 @@ void process_gcode_command() { if (temp_achieved() == 0) { enqueue(NULL); } - #if E_STARTSTOP_STEPS > 0 + #ifdef DC_EXTRUDER + heater_set(DC_EXTRUDER, DC_EXTRUDER_PWM); + #elif E_STARTSTOP_STEPS > 0 do { // backup feedrate, move E very quickly then restore feedrate backup_f = startpoint.F; @@ -189,7 +191,9 @@ void process_gcode_command() { // M103- extruder off case 103: - #if E_STARTSTOP_STEPS > 0 + #ifdef DC_EXTRUDER + heater_set(DC_EXTRUDER, 0); + #elif E_STARTSTOP_STEPS > 0 do { // backup feedrate, move E very quickly then restore feedrate backup_f = startpoint.F;