From eb3a05c43774f9502f6d8f89a221b2d250408ae3 Mon Sep 17 00:00:00 2001
From: Scott Lahteine <thinkyhead@users.noreply.github.com>
Date: Sat, 20 Jan 2018 12:00:03 -0600
Subject: [PATCH] Allow FIL_RUNOUT_PIN override on RAMPS-based boards

---
 Marlin/pins_RAMPS.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Marlin/pins_RAMPS.h b/Marlin/pins_RAMPS.h
index c73c0c6311..0e6f8bced4 100644
--- a/Marlin/pins_RAMPS.h
+++ b/Marlin/pins_RAMPS.h
@@ -252,7 +252,9 @@
 #endif
 
 // define digital pin 4 for the filament runout sensor. Use the RAMPS 1.4 digital input 4 on the servos connector
-#define FIL_RUNOUT_PIN      4
+#ifndef FIL_RUNOUT_PIN
+  #define FIL_RUNOUT_PIN    4
+#endif
 
 #ifndef PS_ON_PIN
   #define PS_ON_PIN        12