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,26 +173,30 @@ void process_gcode_command() {
if (temp_achieved() == 0) { if (temp_achieved() == 0) {
enqueue(NULL); enqueue(NULL);
} }
do { #if E_STARTSTOP_STEPS > 0
// backup feedrate, move E very quickly then restore feedrate do {
backup_f = startpoint.F; // backup feedrate, move E very quickly then restore feedrate
startpoint.F = MAXIMUM_FEEDRATE_E; backup_f = startpoint.F;
SpecialMoveE(E_STARTSTOP_STEPS, MAXIMUM_FEEDRATE_E); startpoint.F = MAXIMUM_FEEDRATE_E;
startpoint.F = backup_f; SpecialMoveE(E_STARTSTOP_STEPS, MAXIMUM_FEEDRATE_E);
} while (0); startpoint.F = backup_f;
} while (0);
#endif
break; break;
// M102- extruder reverse // M102- extruder reverse
// M103- extruder off // M103- extruder off
case 103: case 103:
do { #if E_STARTSTOP_STEPS > 0
// backup feedrate, move E very quickly then restore feedrate do {
backup_f = startpoint.F; // backup feedrate, move E very quickly then restore feedrate
startpoint.F = MAXIMUM_FEEDRATE_E; backup_f = startpoint.F;
SpecialMoveE(-E_STARTSTOP_STEPS, MAXIMUM_FEEDRATE_E); startpoint.F = MAXIMUM_FEEDRATE_E;
startpoint.F = backup_f; SpecialMoveE(-E_STARTSTOP_STEPS, MAXIMUM_FEEDRATE_E);
} while (0); startpoint.F = backup_f;
} while (0);
#endif
break; break;
// M104- set temperature // M104- set temperature