Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions libraries/EEPROM/src/EEPROM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions libraries/EEPROM/src/EEPROM.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class EEPROMClass {
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");
Expand Down