Browse Source

Use "defined" with LCD_PIN_BL and LCD_PIN_RESET

Scott Lahteine 8 years ago
parent
commit
8f16563bbd
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/dogm_lcd_implementation.h

+ 2
- 2
Marlin/dogm_lcd_implementation.h View File

@@ -197,12 +197,12 @@ char lcd_printPGM(const char* str) {
197 197
 /* Warning: This function is called from interrupt context */
198 198
 static void lcd_implementation_init() {
199 199
 
200
-  #if ENABLED(LCD_PIN_BL) // Enable LCD backlight
200
+  #if defined(LCD_PIN_BL) && LCD_PIN_BL > -1 // Enable LCD backlight
201 201
     pinMode(LCD_PIN_BL, OUTPUT);
202 202
     digitalWrite(LCD_PIN_BL, HIGH);
203 203
   #endif
204 204
 
205
-  #if ENABLED(LCD_PIN_RESET)
205
+  #if defined(LCD_PIN_RESET) && LCD_PIN_RESET > -1
206 206
     pinMode(LCD_PIN_RESET, OUTPUT);
207 207
     digitalWrite(LCD_PIN_RESET, HIGH);
208 208
   #endif

Loading…
Cancel
Save