From b22cd49e833ecfb8ebbf073b9887e29955eaa323 Mon Sep 17 00:00:00 2001 From: Sergey Date: Wed, 27 Apr 2022 17:56:51 +0300 Subject: [PATCH] FILAMENT_RUNOUT_SENSOR pullup/pulldown --- Marlin/Configuration.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Marlin/Configuration.h b/Marlin/Configuration.h index 9eda4fc194..878d5a520e 100644 --- a/Marlin/Configuration.h +++ b/Marlin/Configuration.h @@ -1527,8 +1527,12 @@ #define FIL_RUNOUT_ENABLED_DEFAULT false // Enable the sensor on startup. Override with M412 followed by M500. #define NUM_RUNOUT_SENSORS 1 // Number of sensors, up to one per extruder. Define a FIL_RUNOUT#_PIN for each. #define FIL_RUNOUT_STATE FIL_RUNOUT_LEVEL // Pin state indicating that filament is NOT present. + + #if FIL_RUNOUT_LEVEL==LOW #define FIL_RUNOUT_PULLUP // Use internal pullup for filament runout pins. - //#define FIL_RUNOUT_PULLDOWN // Use internal pulldown for filament runout pins. + #else + #define FIL_RUNOUT_PULLDOWN // Use internal pulldown for filament runout pins. + #endif //#define WATCH_ALL_RUNOUT_SENSORS // Execute runout script on any triggering sensor, not only for the active extruder. // This is automatically enabled for MIXING_EXTRUDERs.