exclude code for no-ooze if disabled

This commit is contained in:
Michael Moon 2010-10-26 01:03:06 +11:00
parent 64f027f54e
commit 7aa99095ff
2 changed files with 19 additions and 15 deletions

View File

@ -38,7 +38,7 @@
#define TEMP_HYSTERESIS 20 #define TEMP_HYSTERESIS 20
#define TEMP_RESIDENCY_TIME 60 #define TEMP_RESIDENCY_TIME 60
// this is how many steps to suck back the filament by when we stop // this is how many steps to suck back the filament by when we stop. set to zero to disable
#define E_STARTSTOP_STEPS 20 #define E_STARTSTOP_STEPS 20
/* /*

View File

@ -173,6 +173,7 @@ void process_gcode_command() {
if (temp_achieved() == 0) { if (temp_achieved() == 0) {
enqueue(NULL); enqueue(NULL);
} }
#if E_STARTSTOP_STEPS > 0
do { do {
// backup feedrate, move E very quickly then restore feedrate // backup feedrate, move E very quickly then restore feedrate
backup_f = startpoint.F; backup_f = startpoint.F;
@ -180,12 +181,14 @@ void process_gcode_command() {
SpecialMoveE(E_STARTSTOP_STEPS, MAXIMUM_FEEDRATE_E); SpecialMoveE(E_STARTSTOP_STEPS, MAXIMUM_FEEDRATE_E);
startpoint.F = backup_f; startpoint.F = backup_f;
} while (0); } while (0);
#endif
break; break;
// M102- extruder reverse // M102- extruder reverse
// M103- extruder off // M103- extruder off
case 103: case 103:
#if E_STARTSTOP_STEPS > 0
do { do {
// backup feedrate, move E very quickly then restore feedrate // backup feedrate, move E very quickly then restore feedrate
backup_f = startpoint.F; backup_f = startpoint.F;
@ -193,6 +196,7 @@ void process_gcode_command() {
SpecialMoveE(-E_STARTSTOP_STEPS, MAXIMUM_FEEDRATE_E); SpecialMoveE(-E_STARTSTOP_STEPS, MAXIMUM_FEEDRATE_E);
startpoint.F = backup_f; startpoint.F = backup_f;
} while (0); } while (0);
#endif
break; break;
// M104- set temperature // M104- set temperature