Browse Source

Endstops fix followup (#12423)

Followup to #12413
Giuliano Zaro 6 years ago
parent
commit
98c2fc4e42
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/module/endstops.cpp

+ 2
- 2
Marlin/src/module/endstops.cpp View File

293
 void Endstops::resync() {
293
 void Endstops::resync() {
294
   if (!abort_enabled()) return;     // If endstops/probes are disabled the loop below can hang
294
   if (!abort_enabled()) return;     // If endstops/probes are disabled the loop below can hang
295
 
295
 
296
-  #if ENABLED(ENDSTOP_INTERRUPTS_FEATURE) && !ENDSTOP_NOISE_THRESHOLD
296
+  #if ENABLED(ENDSTOP_INTERRUPTS_FEATURE)
297
     update();
297
     update();
298
   #else
298
   #else
299
-    safe_delay(2);  // Wait for Temperature ISR (runs at 1KHz)
299
+    safe_delay(2);  // Wait for Temperature ISR to run at least once (runs at 1KHz)
300
   #endif
300
   #endif
301
   #if ENDSTOP_NOISE_THRESHOLD
301
   #if ENDSTOP_NOISE_THRESHOLD
302
     while (endstop_poll_count) safe_delay(1);
302
     while (endstop_poll_count) safe_delay(1);

Loading…
Cancel
Save