From 472ab0cc243596ff29baf2b4abfec8bc511e246e Mon Sep 17 00:00:00 2001
From: Scott Lahteine <github@thinkyhead.com>
Date: Tue, 10 Apr 2018 16:47:48 -0500
Subject: [PATCH] Tweak RAMPS SDSS pins

---
 Marlin/src/pins/pins_RAMPS.h | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/Marlin/src/pins/pins_RAMPS.h b/Marlin/src/pins/pins_RAMPS.h
index 721a940a3e..698c310d86 100644
--- a/Marlin/src/pins/pins_RAMPS.h
+++ b/Marlin/src/pins/pins_RAMPS.h
@@ -449,7 +449,7 @@
       #define BTN_EN1           47
       #define BTN_EN2           43
       #define BTN_ENC           32
-      #define LCD_SDSS          53
+      #define LCD_SDSS          SDSS
       #define KILL_PIN          41
 
     #elif ENABLED(LCD_I2C_VIKI)
@@ -458,7 +458,7 @@
       #define BTN_EN2            7   // 22/7 are unused on RAMPS_14. 22 is unused and 7 the SERVO0_PIN on RAMPS_13.
       #define BTN_ENC           -1
 
-      #define LCD_SDSS          53
+      #define LCD_SDSS          SDSS
       #define SD_DETECT_PIN     49
 
     #elif ENABLED(VIKI2) || ENABLED(miniVIKI)
@@ -475,7 +475,6 @@
       #define BTN_EN2            7
       #define BTN_ENC           39
 
-      #define SDSS              53
       #define SD_DETECT_PIN     -1   // Pin 49 for display sd interface, 72 for easy adapter board
       #define KILL_PIN          31
 
@@ -491,7 +490,7 @@
       #define BTN_EN2           37
       #define BTN_ENC           31
 
-      #define LCD_SDSS          53
+      #define LCD_SDSS          SDSS
       #define SD_DETECT_PIN     49
       #define KILL_PIN          41
 
@@ -515,7 +514,6 @@
       #define BTN_EN2           33
       #define BTN_ENC           35
 
-      #define SDSS              53
       #define SD_DETECT_PIN     49
       #define KILL_PIN          64
 
@@ -539,7 +537,6 @@
       #define BTN_EN2           63
       #define BTN_ENC           59
 
-      #define SDSS              53
       #define SD_DETECT_PIN     49
       #define KILL_PIN          64
 
-- 
GitLab