Skip to content

Commit

Permalink
Find a suitable test
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkyhead committed Feb 23, 2022
1 parent b480edc commit 5b65a86
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Marlin/src/inc/SanityCheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -2855,6 +2855,10 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
#endif
#endif

#if HAS_ENCODER_ACTION && PIN_EXISTS(LCD_BACKLIGHT)
#error "Add LCD_BACKLIGHT_TIMEOUT to this test!"
#endif

#if LCD_BACKLIGHT_TIMEOUT
#if !HAS_ENCODER_ACTION
#error "LCD_BACKLIGHT_TIMEOUT requires an LCD with encoder or keypad."
Expand Down

0 comments on commit 5b65a86

Please sign in to comment.