Implementation changes to support 5 extruders

This commit is contained in:
Scott Lahteine
2017-04-06 16:46:52 -05:00
parent 04050237f0
commit 832064e4f2
6 changed files with 389 additions and 259 deletions

View File

@ -10707,9 +10707,12 @@ void prepare_move_to_destination() {
|| E2_ENABLE_READ == E_ENABLE_ON
#if E_STEPPERS > 3
|| E3_ENABLE_READ == E_ENABLE_ON
#endif
#endif
#endif
#if E_STEPPERS > 4
|| E4_ENABLE_READ == E_ENABLE_ON
#endif // E_STEPPERS > 4
#endif // E_STEPPERS > 3
#endif // E_STEPPERS > 2
#endif // E_STEPPERS > 1
) {
lastMotorOn = ms; //... set time to NOW so the fan will turn on
}
@ -10930,6 +10933,7 @@ void enable_all_steppers() {
enable_e1();
enable_e2();
enable_e3();
enable_e4();
}
void disable_e_steppers() {
@ -10937,6 +10941,7 @@ void disable_e_steppers() {
disable_e1();
disable_e2();
disable_e3();
disable_e4();
}
void disable_all_steppers() {
@ -11135,9 +11140,15 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) {
oldstatus = E3_ENABLE_READ;
enable_e3();
break;
#endif
#endif
#endif
#if E_STEPPERS > 4
case 4:
oldstatus = E4_ENABLE_READ;
enable_e4();
break;
#endif // E_STEPPERS > 4
#endif // E_STEPPERS > 3
#endif // E_STEPPERS > 2
#endif // E_STEPPERS > 1
}
#endif // !SWITCHING_EXTRUDER
@ -11168,9 +11179,14 @@ void manage_inactivity(bool ignore_stepper_queue/*=false*/) {
case 3:
E3_ENABLE_WRITE(oldstatus);
break;
#endif
#endif
#endif
#if E_STEPPERS > 4
case 4:
E4_ENABLE_WRITE(oldstatus);
break;
#endif // E_STEPPERS > 4
#endif // E_STEPPERS > 3
#endif // E_STEPPERS > 2
#endif // E_STEPPERS > 1
}
#endif // !SWITCHING_EXTRUDER
}