Skip to content
Snippets Groups Projects
Commit 1461ee4d authored by Tim Moore's avatar Tim Moore Committed by Scott Lahteine
Browse files

Make LCD_CONTRAST_MAX >= _LCD_CONTRAST_INIT (#15046)

parent 9e9e5782
No related branches found
No related tags found
Loading
...@@ -292,8 +292,10 @@ ...@@ -292,8 +292,10 @@
#ifndef LCD_CONTRAST_MAX #ifndef LCD_CONTRAST_MAX
#ifdef _LCD_CONTRAST_MAX #ifdef _LCD_CONTRAST_MAX
#define LCD_CONTRAST_MAX _LCD_CONTRAST_MAX #define LCD_CONTRAST_MAX _LCD_CONTRAST_MAX
#elif _LCD_CONTRAST_INIT > 63
#define LCD_CONTRAST_MAX _LCD_CONTRAST_INIT
#else #else
#define LCD_CONTRAST_MAX 63 #define LCD_CONTRAST_MAX 63 // ST7567 6-bits contrast
#endif #endif
#endif #endif
#ifndef DEFAULT_LCD_CONTRAST #ifndef DEFAULT_LCD_CONTRAST
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment