Bläddra i källkod

Followup for Endstop Noise Threshold

Followup to #11912
Scott Lahteine 6 år sedan
förälder
incheckning
d6b9327c11
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2
    2
      Marlin/src/module/endstops.cpp

+ 2
- 2
Marlin/src/module/endstops.cpp Visa fil

@@ -248,7 +248,7 @@ void Endstops::poll() {
248 248
 
249 249
   #if DISABLED(ENDSTOP_INTERRUPTS_FEATURE)
250 250
     update();
251
-  #elif ENABLED(ENDSTOP_NOISE_FILTER)
251
+  #elif ENDSTOP_NOISE_THRESHOLD
252 252
     if (endstop_poll_count) update();
253 253
   #endif
254 254
 }
@@ -278,7 +278,7 @@ void Endstops::not_homing() {
278 278
     // Still 'enabled'? Then endstops are always on and kept in sync.
279 279
     // Otherwise reset 'live's variables to let axes move in both directions.
280 280
     if (!enabled) {
281
-      #if ENABLED(ENDSTOP_NOISE_FILTER)
281
+      #if ENDSTOP_NOISE_THRESHOLD
282 282
         endstop_poll_count = validated_live_state = 0; // Stop filtering
283 283
       #endif
284 284
       live_state = 0;

Laddar…
Avbryt
Spara