Fix display functionality on NRF52
This commit is contained in:
parent
f137e5cf35
commit
40b8b8a8b3
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user