Browse Source

Use "defined" with LCD_PIN_BL and LCD_PIN_RESET

pull/1/head
Scott Lahteine 9 years ago
committed by Richard Wackerbarth
parent
commit
8f16563bbd
  1. 4
      Marlin/dogm_lcd_implementation.h

4
Marlin/dogm_lcd_implementation.h

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

Loading…
Cancel
Save