From d6b9327c1119507a7369a72bc322bc6df2730fe9 Mon Sep 17 00:00:00 2001 From: Scott Lahteine Date: Tue, 25 Sep 2018 13:50:49 -0400 Subject: [PATCH] Followup for Endstop Noise Threshold Followup to #11912 --- Marlin/src/module/endstops.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/src/module/endstops.cpp b/Marlin/src/module/endstops.cpp index 93a0001ab..fb7a36ecb 100644 --- a/Marlin/src/module/endstops.cpp +++ b/Marlin/src/module/endstops.cpp @@ -248,7 +248,7 @@ void Endstops::poll() { #if DISABLED(ENDSTOP_INTERRUPTS_FEATURE) update(); - #elif ENABLED(ENDSTOP_NOISE_FILTER) + #elif ENDSTOP_NOISE_THRESHOLD if (endstop_poll_count) update(); #endif } @@ -278,7 +278,7 @@ void Endstops::not_homing() { // Still 'enabled'? Then endstops are always on and kept in sync. // Otherwise reset 'live's variables to let axes move in both directions. if (!enabled) { - #if ENABLED(ENDSTOP_NOISE_FILTER) + #if ENDSTOP_NOISE_THRESHOLD endstop_poll_count = validated_live_state = 0; // Stop filtering #endif live_state = 0;