Fix display functionality on NRF52

This commit is contained in:
jacob.eva 2024-02-16 21:51:28 +00:00
parent f137e5cf35
commit 40b8b8a8b3
No known key found for this signature in database
GPG Key ID: 0B92E083BBCCAA1E

View File

@ -138,7 +138,11 @@ void setup() {
#endif #endif
#if HAS_DISPLAY #if HAS_DISPLAY
#if HAS_EEPROM
if (EEPROM.read(eeprom_addr(ADDR_CONF_DSET)) != CONF_OK_BYTE) { if (EEPROM.read(eeprom_addr(ADDR_CONF_DSET)) != CONF_OK_BYTE) {
#elif MCU_VARIANT == MCU_NRF52
if (eeprom_read(eeprom_addr(ADDR_CONF_DSET)) != CONF_OK_BYTE) {
#endif
eeprom_update(eeprom_addr(ADDR_CONF_DSET), CONF_OK_BYTE); eeprom_update(eeprom_addr(ADDR_CONF_DSET), CONF_OK_BYTE);
eeprom_update(eeprom_addr(ADDR_CONF_DINT), 0xFF); eeprom_update(eeprom_addr(ADDR_CONF_DINT), 0xFF);
} }
@ -1106,6 +1110,7 @@ void validate_status() {
} }
#else #else
hw_ready = true; hw_ready = true;
device_init_done = true;
#endif #endif
} else { } else {
hw_ready = false; hw_ready = false;