Unverified Commit afa5f413 authored by Rob58329's avatar Rob58329 Committed by GitHub

Arduino core for the esp32 - Add new function "bool isDirty()" to EEPROM.h and EEPROM.cpp (#9611)

* Update EEPROM.h - Added new function: bool isDirty()

* Update EEPROM.cpp - Added new function: bool isDirty()
parent 84376a76
......@@ -133,6 +133,10 @@ void EEPROMClass::end() {
_handle = 0;
}
bool EEPROMClass::isDirty() {
return _dirty;
}
uint8_t EEPROMClass::read(int address) {
if (address < 0 || (size_t)address >= _size) {
return 0;
......
......@@ -45,6 +45,7 @@ public:
uint16_t length();
bool commit();
void end();
bool isDirty();
uint8_t *getDataPtr();
uint16_t convert(bool clear, const char *EEPROMname = "eeprom", const char *nvsname = "eeprom");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment