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

This commit is contained in:
leoujz 2020-06-24 21:39:13 +08:00
parent a82fb82110
commit a967dbe24a

View File

@ -90,6 +90,7 @@ uint8_t * Esp32Platform::getEepromBuffer(uint16_t size)
void Esp32Platform::commitToEeprom()
{
EEPROM.getDataPtr();//make eeprom dirty again
EEPROM.commit();
}