We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c1057c commit 4a8ca11Copy full SHA for 4a8ca11
Marlin/src/module/stepper.cpp
@@ -1613,7 +1613,8 @@ void Stepper::isr() {
1613
// Set the next ISR to fire at the proper time
1614
HAL_timer_set_compare(MF_TIMER_STEP, next_isr_ticks);
1615
1616
- // Don't forget to finally reenable interrupts
+ // Don't forget to finally reenable interrupts on non-AVR.
1617
+ // AVR automatically calls sei() for us on Return-from-Interrupt.
1618
#ifndef __AVR__
1619
hal.isr_on();
1620
#endif
@@ -1831,7 +1832,7 @@ void Stepper::pulse_phase_isr() {
1831
1832
1833
#define PAGE_PULSE_PREP(AXIS, BITS) do{ \
1834
step_needed.set(_AXIS(AXIS), (steps >> BITS) & 0x1); \
- if (step_needed.test(_AXIS(AXIS))) \
1835
+ if (step_needed.test(_AXIS(AXIS))) \
1836
page_step_state.bd[_AXIS(AXIS)]++; \
1837
}while(0)
1838
0 commit comments