1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-30 07:17:59 +00:00

Make LCD_CONTRAST_MAX >= _LCD_CONTRAST_INIT (#15046)

This commit is contained in:
Tim Moore 2019-08-25 02:25:07 -07:00 committed by Scott Lahteine
parent 9e9e578234
commit 1461ee4d36

View File

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