Skip to content

Commit

Permalink
Fix TNC settings not being saved, courtesy of @attermann
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobeva committed Jul 4, 2024
1 parent fd688b9 commit 5fb1f45
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -1260,11 +1260,9 @@ void eeprom_update(int mapped_addr, uint8_t byte) {
}
written_bytes++;

if ((mapped_addr - eeprom_addr(0)) == ADDR_INFO_LOCK) {
#if !HAS_EEPROM && MCU_VARIANT == MCU_NRF52
if (((mapped_addr - eeprom_addr(0)) == ADDR_INFO_LOCK) || (mapped_addr - eeprom_addr(0)) == ADDR_CONF_OK) {
// have to do a flush because we're only writing 1 byte and it syncs after 4
eeprom_flush();
#endif
}

if (written_bytes >= 4) {
Expand Down

0 comments on commit 5fb1f45

Please sign in to comment.