Skip to content

Commit

Permalink
Positive conditions for HAS_LCD_CONTRAST
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Jun 2, 2016
1 parent efa7209 commit 5390c84
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Marlin/Conditionals.h
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,14 @@
* Default LCD contrast for dogm-like LCD displays
*/
#if ENABLED(DOGLCD)
#define HAS_LCD_CONTRAST (DISABLED(U8GLIB_ST7920) && DISABLED(U8GLIB_SSD1306) && DISABLED(U8GLIB_SH1106))

#define HAS_LCD_CONTRAST ( \
ENABLED(MAKRPANEL) \
|| ENABLED(VIKI2) \
|| ENABLED(miniVIKI) \
|| ENABLED(ELB_FULL_GRAPHIC_CONTROLLER) \
)

#if HAS_LCD_CONTRAST
#ifndef LCD_CONTRAST_MIN
#define LCD_CONTRAST_MIN 0
Expand Down

0 comments on commit 5390c84

Please sign in to comment.