Fixed display intensity EEPROM configuration regression

This commit is contained in:
Mark Qvist 2024-09-29 00:03:14 +02:00
parent bb9f515348
commit a739d6f3ab

View File

@ -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;