1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-23 20:18:52 +00:00

Use e_steps[EXTRUDERS] instead of e_steps[4]

This commit is contained in:
Scott Lahteine 2016-06-05 01:44:53 -07:00
parent 43947072d5
commit e2a8961635
2 changed files with 3 additions and 3 deletions

View File

@ -93,7 +93,7 @@ volatile unsigned long Stepper::step_events_completed = 0; // The number of step
unsigned char Stepper::old_OCR0A; unsigned char Stepper::old_OCR0A;
long Stepper::final_advance = 0, long Stepper::final_advance = 0,
Stepper::old_advance = 0, Stepper::old_advance = 0,
Stepper::e_steps[4], Stepper::e_steps[EXTRUDERS],
Stepper::advance_rate, Stepper::advance_rate,
Stepper::advance; Stepper::advance;
#endif #endif
@ -661,7 +661,7 @@ void Stepper::init() {
CBI(TCCR0A, WGM01); CBI(TCCR0A, WGM01);
CBI(TCCR0A, WGM00); CBI(TCCR0A, WGM00);
#endif #endif
e_steps[0] = e_steps[1] = e_steps[2] = e_steps[3] = 0; for (uint8_t i = 0; i < EXTRUDERS; i++) e_steps[i] = 0;
SBI(TIMSK0, OCIE0A); SBI(TIMSK0, OCIE0A);
#endif //ADVANCE #endif //ADVANCE

View File

@ -91,7 +91,7 @@ class Stepper {
#endif #endif
#if ENABLED(ADVANCE) #if ENABLED(ADVANCE)
static long e_steps[4]; static long e_steps[EXTRUDERS];
#endif #endif
private: private: