0
0
Fork 0
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:
Scott Lahteine 2023-03-11 19:17:25 -06:00
parent 4527908c11
commit cb66bff924

View file

@ -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