Merge pull request #60 from anklimov/persitense-refactoring

Persitense refactoring merge
This commit is contained in:
2021-10-07 23:58:35 +03:00
committed by GitHub

View File

@@ -176,7 +176,7 @@ NRFFlashStorage EEPROM;
int flashStream::peek() int flashStream::peek()
{ {
if (pos<streamSize) if (pos<streamSize)
return EEPROM.read(pos); return EEPROM.read(startPos+pos);
else return -1; else return -1;
}; };
void flashStream::flush() { void flashStream::flush() {