From: jacob.eva Date: Thu, 4 Jul 2024 18:02:46 +0000 (+0100) Subject: Fix TNC settings not being saved, courtesy of @attermann X-Git-Url: https://git.tnoah.ca/?a=commitdiff_plain;h=5fb1f452a40bb2895c1fa5b2af608031230c882e;p=lora-radio.git Fix TNC settings not being saved, courtesy of @attermann --- diff --git a/Utilities.h b/Utilities.h index 849be1b..bd55d4a 100644 --- a/Utilities.h +++ b/Utilities.h @@ -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) {