🐛 Fix LCD contrast/brightness init (#23567)
Co-authored-by: Scott Lahteine <thinkyhead@users.noreply.github.com>
This commit is contained in:
committed by
Scott Lahteine
parent
99f3b8b4a8
commit
2142456a25
@@ -96,8 +96,7 @@ constexpr uint8_t epps = ENCODER_PULSES_PER_STEP;
|
||||
#endif
|
||||
|
||||
#if HAS_LCD_CONTRAST
|
||||
uint8_t MarlinUI::contrast; // Initialized by settings.load()
|
||||
|
||||
uint8_t MarlinUI::contrast = LCD_CONTRAST_DEFAULT; // Initialized by settings.load()
|
||||
void MarlinUI::set_contrast(const uint8_t value) {
|
||||
contrast = constrain(value, LCD_CONTRAST_MIN, LCD_CONTRAST_MAX);
|
||||
_set_contrast();
|
||||
|
Reference in New Issue
Block a user