Commit ea2a3ba5 authored by Simone's avatar Simone

Update ultralcd.h

Enable LCD contrast function only if there is a pin decleared
parent ba8f964e
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
void lcd_reset_alert_level(); void lcd_reset_alert_level();
bool lcd_detected(void); bool lcd_detected(void);
#ifdef DOGLCD #if defined(DOGLCD) && LCD_CONTRAST >= 0
extern int lcd_contrast; extern int lcd_contrast;
void lcd_setcontrast(uint8_t value); void lcd_setcontrast(uint8_t value);
#endif #endif
...@@ -134,3 +134,4 @@ char *ftostr51(const float &x); ...@@ -134,3 +134,4 @@ char *ftostr51(const float &x);
char *ftostr52(const float &x); char *ftostr52(const float &x);
#endif //ULTRALCD_H #endif //ULTRALCD_H
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment