Merge pull request #5256 from AnHardt/e-interrupts-2
Endstop interrupt refinement
This commit is contained in:
commit
8bf07684d2
@ -359,6 +359,11 @@ void Stepper::isr() {
|
|||||||
|
|
||||||
step_events_completed = 0;
|
step_events_completed = 0;
|
||||||
|
|
||||||
|
#if ENABLED(ENDSTOP_INTERRUPTS_FEATURE)
|
||||||
|
e_hit = 2; // Needed for the case an endstop is already triggered before the new move begins.
|
||||||
|
// No 'change' can be detected.
|
||||||
|
#endif
|
||||||
|
|
||||||
#if ENABLED(Z_LATE_ENABLE)
|
#if ENABLED(Z_LATE_ENABLE)
|
||||||
if (current_block->steps[Z_AXIS] > 0) {
|
if (current_block->steps[Z_AXIS] > 0) {
|
||||||
enable_z();
|
enable_z();
|
||||||
|
Loading…
Reference in New Issue
Block a user