Browse Source

Merge pull request #5256 from AnHardt/e-interrupts-2

Endstop interrupt refinement
Scott Lahteine 7 years ago
parent
commit
8bf07684d2
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      Marlin/stepper.cpp

+ 5
- 0
Marlin/stepper.cpp View File

@@ -359,6 +359,11 @@ void Stepper::isr() {
359 359
 
360 360
       step_events_completed = 0;
361 361
 
362
+      #if ENABLED(ENDSTOP_INTERRUPTS_FEATURE)
363
+        e_hit = 2; // Needed for the case an endstop is already triggered before the new move begins.
364
+                   // No 'change' can be detected.
365
+      #endif
366
+
362 367
       #if ENABLED(Z_LATE_ENABLE)
363 368
         if (current_block->steps[Z_AXIS] > 0) {
364 369
           enable_z();

Loading…
Cancel
Save