Skip to content

Commit

Permalink
Make LCD_CONTRAST_MAX >= _LCD_CONTRAST_INIT (MarlinFirmware#15046)
Browse files Browse the repository at this point in the history
  • Loading branch information
timmmoore authored and thinkyhead committed Aug 25, 2019
1 parent 9e9e578 commit 1461ee4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Marlin/src/inc/Conditionals_post.h
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,10 @@
#ifndef LCD_CONTRAST_MAX
#ifdef _LCD_CONTRAST_MAX
#define LCD_CONTRAST_MAX _LCD_CONTRAST_MAX
#elif _LCD_CONTRAST_INIT > 63
#define LCD_CONTRAST_MAX _LCD_CONTRAST_INIT
#else
#define LCD_CONTRAST_MAX 63
#define LCD_CONTRAST_MAX 63 // ST7567 6-bits contrast
#endif
#endif
#ifndef DEFAULT_LCD_CONTRAST
Expand Down

0 comments on commit 1461ee4

Please sign in to comment.