From a739d6f3ab18e53927390a1bf546ce04a6b2870d Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sun, 29 Sep 2024 00:03:14 +0200 Subject: [PATCH] Fixed display intensity EEPROM configuration regression --- Display.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Display.h b/Display.h index dd24475..7622635 100644 --- a/Display.h +++ b/Display.h @@ -193,9 +193,11 @@ bool display_init() { display.cp437(true); #if HAS_EEPROM - uint8_t display_intensity = EEPROM.read(eeprom_addr(ADDR_CONF_DINT)); - #elif MCU_VARIANT == MCU_NRF52 - uint8_t display_intensity = eeprom_read(eeprom_addr(ADDR_CONF_DINT)); + #if MCU_VARIANT != MCU_NRF52 + display_intensity = EEPROM.read(eeprom_addr(ADDR_CONF_DINT)); + #else + display_intensity = eeprom_read(eeprom_addr(ADDR_CONF_DINT)); + #endif #endif return true;