Persist display intensity to EEPROM

This commit is contained in:
Mark Qvist 2023-05-03 14:05:49 +02:00
parent 7e86873ead
commit 7274a6cc70
4 changed files with 13 additions and 0 deletions

View file

@ -1096,6 +1096,10 @@ void bt_conf_save(bool is_enabled) {
}
}
void di_conf_save(uint8_t dint) {
eeprom_update(eeprom_addr(ADDR_CONF_DINT), dint);
}
bool eeprom_have_conf() {
if (EEPROM.read(eeprom_addr(ADDR_CONF_OK)) == CONF_OK_BYTE) {
return true;