mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-30 07:17:59 +00:00
Fix EXTRA_CYCLES_E handling in LIN_ADVANCE
This commit is contained in:
parent
e98288ecab
commit
d77be210c1
@ -877,12 +877,12 @@ void Stepper::isr() {
|
||||
|
||||
// For minimum pulse time wait before looping
|
||||
#if EXTRA_CYCLES_E > 20
|
||||
if (i) while (EXTRA_CYCLES_E > (uint32_t)(TCNT0 - pulse_start) * (INT0_PRESCALER)) { /* nada */ }
|
||||
if (e_steps) while (EXTRA_CYCLES_E > (uint32_t)(TCNT0 - pulse_start) * (INT0_PRESCALER)) { /* nada */ }
|
||||
#elif EXTRA_CYCLES_E > 0
|
||||
if (i) DELAY_NOPS(EXTRA_CYCLES_E);
|
||||
if (e_steps) DELAY_NOPS(EXTRA_CYCLES_E);
|
||||
#endif
|
||||
|
||||
} // steps_loop
|
||||
} // e_steps
|
||||
}
|
||||
|
||||
void Stepper::advance_isr_scheduler() {
|
||||
|
Loading…
Reference in New Issue
Block a user