Followup for Endstop Noise Threshold

Followup to #11912
This commit is contained in:
Scott Lahteine 2018-09-25 13:50:49 -04:00
parent aa6e8e9325
commit d6b9327c11

View file

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