From a967dbe24a4df4e3187e3dcad6f8ab8997c377ca Mon Sep 17 00:00:00 2001 From: leoujz Date: Wed, 24 Jun 2020 21:39:13 +0800 Subject: [PATCH] fix an issue that eeprom data won't actually saved to flash if EEPROM used out of the library, always make eeprom dirty before commit --- src/esp32_platform.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/esp32_platform.cpp b/src/esp32_platform.cpp index 844f446..ae53323 100644 --- a/src/esp32_platform.cpp +++ b/src/esp32_platform.cpp @@ -90,6 +90,7 @@ uint8_t * Esp32Platform::getEepromBuffer(uint16_t size) void Esp32Platform::commitToEeprom() { + EEPROM.getDataPtr();//make eeprom dirty again EEPROM.commit(); }