mirror of
https://github.com/anklimov/lighthub
synced 2025-12-06 11:49:51 +03:00
flash read fix
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user