|
@@ -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
|