mirror of
https://github.com/liberatedsystems/RNode_Firmware_CE.git
synced 2025-02-13 21:51:28 -05:00
Fixed display intensity EEPROM configuration regression
This commit is contained in:
parent
bb9f515348
commit
a739d6f3ab
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user