瀏覽代碼

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

Loading…
取消
儲存