Selaa lähdekoodia

Filament state followup

Scott Lahteine 5 vuotta sitten
vanhempi
commit
e48489482c
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 5
    1
      Marlin/src/feature/runout.h

+ 5
- 1
Marlin/src/feature/runout.h Näytä tiedosto

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

Loading…
Peruuta
Tallenna