浏览代码

Followup for Endstop Noise Threshold

Followup to #11912
Scott Lahteine 6 年前
父节点
当前提交
d6b9327c11
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      Marlin/src/module/endstops.cpp

+ 2
- 2
Marlin/src/module/endstops.cpp 查看文件

@@ -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;

正在加载...
取消
保存