浏览代码

Filament state followup

Scott Lahteine 5 年前
父节点
当前提交
e48489482c
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5
    1
      Marlin/src/feature/runout.h

+ 5
- 1
Marlin/src/feature/runout.h 查看文件

@@ -148,7 +148,11 @@ class FilamentSensorBase {
148 148
 
149 149
     // Return a bitmask of runout flag states (1 bits always indicates runout)
150 150
     static inline uint8_t poll_runout_states() {
151
-      return poll_runout_pins() ^ uint8_t(TERN(FIL_RUNOUT_STATE, 0, _BV(NUM_RUNOUT_SENSORS) - 1));
151
+      return poll_runout_pins()
152
+        #if FIL_RUNOUT_STATE == LOW
153
+          ^ uint8_t(_BV(NUM_RUNOUT_SENSORS) - 1)
154
+        #endif
155
+      ;
152 156
     }
153 157
 };
154 158
 

正在加载...
取消
保存