Browse Source

Make LCD_CONTRAST_MAX >= _LCD_CONTRAST_INIT (#15046)

pull/1/head
Tim Moore 5 years ago
committed by Scott Lahteine
parent
commit
1461ee4d36
  1. 4
      Marlin/src/inc/Conditionals_post.h

4
Marlin/src/inc/Conditionals_post.h

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

Loading…
Cancel
Save