🐛 E3V2 Brightness followup (#22821)

Co-authored-by: Scott Lahteine <github@thinkyhead.com>
This commit is contained in:
Miguel Risco-CastilloandScott Lahteine authored and Scott Lahteine committed 2021-10-02 22:31:15 -05:00
1 parent e705a7724e
commit 89898181bd
16 files changed
+82 -63

No files matched your search

+3 -3
View File
@@ -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));