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()
This commit is contained in:
parent
84376a765a
commit
afa5f41328
2 changed files with 5 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue