File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -1610,7 +1610,7 @@ void Stepper::isr() {
1610
1610
#if MINIMUM_STEPPER_PULSE || MAXIMUM_STEPPER_RATE
1611
1611
#define ISR_PULSE_CONTROL 1
1612
1612
#endif
1613
- #if ISR_PULSE_CONTROL && DISABLED(I2S_STEPPER_STREAM)
1613
+ #if ISR_PULSE_CONTROL && MULTISTEPPING_LIMIT > 1 && DISABLED(I2S_STEPPER_STREAM)
1614
1614
#define ISR_MULTI_STEPS 1
1615
1615
#endif
1616
1616
@@ -1655,10 +1655,11 @@ void Stepper::pulse_phase_isr() {
1655
1655
// Just update the value we will get at the end of the loop
1656
1656
step_events_completed += events_to_do;
1657
1657
1658
- // Take multiple steps per interrupt (For high speed moves)
1659
- #if ISR_MULTI_STEPS
1658
+ TERN_ (ISR_PULSE_CONTROL, USING_TIMED_PULSE ());
1659
+
1660
+ // Take multiple steps per interrupt. For high speed moves.
1661
+ #if ENABLED(ISR_MULTI_STEPS)
1660
1662
bool firstStep = true ;
1661
- USING_TIMED_PULSE ();
1662
1663
#endif
1663
1664
xyze_bool_t step_needed{0 };
1664
1665
@@ -1944,7 +1945,7 @@ void Stepper::pulse_phase_isr() {
1944
1945
TERN_ (I2S_STEPPER_STREAM, i2s_push_sample ());
1945
1946
1946
1947
// TODO: need to deal with MINIMUM_STEPPER_PULSE over i2s
1947
- #if ISR_MULTI_STEPS
1948
+ #if ISR_PULSE_CONTROL
1948
1949
START_TIMED_PULSE ();
1949
1950
AWAIT_HIGH_PULSE ();
1950
1951
#endif
You canβt perform that action at this time.
0 commit comments