Browse Source

Use "defined" with LCD_PIN_BL and LCD_PIN_RESET

Scott Lahteine 9 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
 /* Warning: This function is called from interrupt context */
197
 /* Warning: This function is called from interrupt context */
198
 static void lcd_implementation_init() {
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
     pinMode(LCD_PIN_BL, OUTPUT);
201
     pinMode(LCD_PIN_BL, OUTPUT);
202
     digitalWrite(LCD_PIN_BL, HIGH);
202
     digitalWrite(LCD_PIN_BL, HIGH);
203
   #endif
203
   #endif
204
 
204
 
205
-  #if ENABLED(LCD_PIN_RESET)
205
+  #if defined(LCD_PIN_RESET) && LCD_PIN_RESET > -1
206
     pinMode(LCD_PIN_RESET, OUTPUT);
206
     pinMode(LCD_PIN_RESET, OUTPUT);
207
     digitalWrite(LCD_PIN_RESET, HIGH);
207
     digitalWrite(LCD_PIN_RESET, HIGH);
208
   #endif
208
   #endif

Loading…
Cancel
Save