Fix TNC settings not being saved, courtesy of @attermann

master
jacob.eva 8 months ago
parent fd688b987d
commit 5fb1f452a4
No known key found for this signature in database
GPG Key ID: B92E083BBCCAA1E
  1. 4
      Utilities.h

@ -1260,11 +1260,9 @@ void eeprom_update(int mapped_addr, uint8_t byte) {
} }
written_bytes++; written_bytes++;
if ((mapped_addr - eeprom_addr(0)) == ADDR_INFO_LOCK) { if (((mapped_addr - eeprom_addr(0)) == ADDR_INFO_LOCK) || (mapped_addr - eeprom_addr(0)) == ADDR_CONF_OK) {
#if !HAS_EEPROM && MCU_VARIANT == MCU_NRF52
// have to do a flush because we're only writing 1 byte and it syncs after 4 // have to do a flush because we're only writing 1 byte and it syncs after 4
eeprom_flush(); eeprom_flush();
#endif
} }
if (written_bytes >= 4) { if (written_bytes >= 4) {

Loading…
Cancel
Save