mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2025-01-19 08:08:25 +00:00
⚡️ Exit from ISR on AVR already does sei
Co-Authored-By: tombrazier <68918209+tombrazier@users.noreply.github.com>
This commit is contained in:
parent
4527908c11
commit
cb66bff924
1 changed files with 5 additions and 2 deletions
|
@ -1600,8 +1600,11 @@ void Stepper::isr() {
|
|||
// Set the next ISR to fire at the proper time
|
||||
HAL_timer_set_compare(MF_TIMER_STEP, hal_timer_t(next_isr_ticks));
|
||||
|
||||
// Don't forget to finally reenable interrupts
|
||||
hal.isr_on();
|
||||
// Don't forget to finally reenable interrupts on non-AVR.
|
||||
// AVR automatically calls sei() for us on Return-from-Interrupt.
|
||||
#ifndef __AVR__
|
||||
hal.isr_on();
|
||||
#endif
|
||||
}
|
||||
|
||||
#if MINIMUM_STEPPER_PULSE || MAXIMUM_STEPPER_RATE
|
||||
|
|
Loading…
Reference in a new issue