Browse Source

Fix backward Filament (Presence) Sensor pulls (#20228)

Co-authored-by: Kurt Haenen <Kurt.Haenen@quintux.com>
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
Kurt Haenen 4 years ago
parent
commit
474be6058b
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/feature/runout.h

+ 1
- 1
Marlin/src/feature/runout.h View File

@@ -149,7 +149,7 @@ class FilamentSensorBase {
149 149
 
150 150
   public:
151 151
     static inline void setup() {
152
-      #define _INIT_RUNOUT_PIN(P,S,U) do{ if (DISABLED(U)) SET_INPUT(P); else if (S) SET_INPUT_PULLDOWN(P); else SET_INPUT_PULLUP(P); }while(0)
152
+      #define _INIT_RUNOUT_PIN(P,S,U) do{ if (DISABLED(U)) SET_INPUT(P); else if (S) SET_INPUT_PULLUP(P); else SET_INPUT_PULLDOWN(P); }while(0)
153 153
       #define  INIT_RUNOUT_PIN(N) _INIT_RUNOUT_PIN(FIL_RUNOUT##N##_PIN, FIL_RUNOUT##N##_STATE, FIL_RUNOUT##N##_PULL)
154 154
       #if NUM_RUNOUT_SENSORS >= 1
155 155
         INIT_RUNOUT_PIN(1);

Loading…
Cancel
Save