From 9248a90a4c83a38a50eb48c7b6841917f233d698 Mon Sep 17 00:00:00 2001
From: Scott Lahteine <github@thinkyhead.com>
Date: Thu, 6 Jul 2017 22:47:37 -0500
Subject: [PATCH] Assign -1 to LCD_PINS_D4-7 if not defined

---
 Marlin/pins.h             | 13 +++++++++++++
 Marlin/pins_CHEAPTRONIC.h |  4 ----
 Marlin/pins_MINITRONICS.h |  4 ----
 Marlin/pins_SAV_MKI.h     |  4 ----
 4 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/Marlin/pins.h b/Marlin/pins.h
index 2a0b92aa93..817c9dae44 100644
--- a/Marlin/pins.h
+++ b/Marlin/pins.h
@@ -470,6 +470,19 @@
   #define Z_MIN_PIN          -1
 #endif
 
+#ifndef LCD_PINS_D4
+  #define LCD_PINS_D4 -1
+#endif
+#ifndef LCD_PINS_D5
+  #define LCD_PINS_D5 -1
+#endif
+#ifndef LCD_PINS_D6
+  #define LCD_PINS_D6 -1
+#endif
+#ifndef LCD_PINS_D7
+  #define LCD_PINS_D7 -1
+#endif
+
 //
 // Dual X-carriage, Dual Y, Dual Z support
 //
diff --git a/Marlin/pins_CHEAPTRONIC.h b/Marlin/pins_CHEAPTRONIC.h
index d1da32cd82..a354a279bf 100644
--- a/Marlin/pins_CHEAPTRONIC.h
+++ b/Marlin/pins_CHEAPTRONIC.h
@@ -81,10 +81,6 @@
 // Cheaptronic v1.0 doesn't support LCD
 #define LCD_PINS_RS        -1
 #define LCD_PINS_ENABLE    -1
-#define LCD_PINS_D4        -1
-#define LCD_PINS_D5        -1
-#define LCD_PINS_D6        -1
-#define LCD_PINS_D7        -1
 
 // Cheaptronic v1.0 doesn't support keypad
 #define BTN_EN1            -1
diff --git a/Marlin/pins_MINITRONICS.h b/Marlin/pins_MINITRONICS.h
index fbdf7cbb66..f224f200be 100644
--- a/Marlin/pins_MINITRONICS.h
+++ b/Marlin/pins_MINITRONICS.h
@@ -118,10 +118,6 @@
 
   #define LCD_PINS_RS      -1
   #define LCD_PINS_ENABLE  -1
-  #define LCD_PINS_D4      -1
-  #define LCD_PINS_D5      -1
-  #define LCD_PINS_D6      -1
-  #define LCD_PINS_D7      -1
 
   // Buttons are directly attached using keypad
   #define BTN_EN1          -1
diff --git a/Marlin/pins_SAV_MKI.h b/Marlin/pins_SAV_MKI.h
index b1ed0bd8c4..84646cc4c6 100755
--- a/Marlin/pins_SAV_MKI.h
+++ b/Marlin/pins_SAV_MKI.h
@@ -155,10 +155,6 @@
 #define BEEPER_PIN         -1
 #define LCD_PINS_RS        -1
 #define LCD_PINS_ENABLE    -1
-#define LCD_PINS_D4        -1
-#define LCD_PINS_D5        -1
-#define LCD_PINS_D6        -1
-#define LCD_PINS_D7        -1
 
 #if ENABLED(SAV_3DLCD)
   // For LCD SHIFT register LCD
-- 
GitLab