🐛 E3V2 Brightness followup (#22821)
Co-authored-by: Scott Lahteine <github@thinkyhead.com>
This commit is contained in:
committed by
Scott Lahteine
parent
e705a7724e
commit
89898181bd
@ -345,7 +345,7 @@ typedef struct SettingsDataStruct {
|
||||
//
|
||||
// HAS_LCD_CONTRAST
|
||||
//
|
||||
int16_t lcd_contrast; // M250 C
|
||||
uint8_t lcd_contrast; // M250 C
|
||||
|
||||
//
|
||||
// HAS_LCD_BRIGHTNESS
|
||||
@ -1006,7 +1006,7 @@ void MarlinSettings::postprocess() {
|
||||
//
|
||||
{
|
||||
_FIELD_TEST(lcd_contrast);
|
||||
const int16_t lcd_contrast = TERN(HAS_LCD_CONTRAST, ui.contrast, 127);
|
||||
const uint8_t lcd_contrast = TERN(HAS_LCD_CONTRAST, ui.contrast, 127);
|
||||
EEPROM_WRITE(lcd_contrast);
|
||||
}
|
||||
|
||||
@ -1869,7 +1869,7 @@ void MarlinSettings::postprocess() {
|
||||
//
|
||||
{
|
||||
_FIELD_TEST(lcd_contrast);
|
||||
int16_t lcd_contrast;
|
||||
uint8_t lcd_contrast;
|
||||
EEPROM_READ(lcd_contrast);
|
||||
if (!validating) {
|
||||
TERN_(HAS_LCD_CONTRAST, ui.set_contrast(lcd_contrast));
|
||||
|
Reference in New Issue
Block a user