Fixed display intensity EEPROM configuration regression
This commit is contained in:
@@ -193,9 +193,11 @@ bool display_init() {
|
|||||||
display.cp437(true);
|
display.cp437(true);
|
||||||
|
|
||||||
#if HAS_EEPROM
|
#if HAS_EEPROM
|
||||||
uint8_t display_intensity = EEPROM.read(eeprom_addr(ADDR_CONF_DINT));
|
#if MCU_VARIANT != MCU_NRF52
|
||||||
#elif MCU_VARIANT == MCU_NRF52
|
display_intensity = EEPROM.read(eeprom_addr(ADDR_CONF_DINT));
|
||||||
uint8_t display_intensity = eeprom_read(eeprom_addr(ADDR_CONF_DINT));
|
#else
|
||||||
|
display_intensity = eeprom_read(eeprom_addr(ADDR_CONF_DINT));
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user