Skip to content

Commit

Permalink
Merge pull request esp8266#2554 from Makuna/SPIFFSFileSeek
Browse files Browse the repository at this point in the history
Add Arduino File standard seek call
  • Loading branch information
igrr authored Nov 14, 2016
2 parents 7ccafad + b5b7169 commit da4cab5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cores/esp8266/FS.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ class File : public Stream
}
size_t read(uint8_t* buf, size_t size);
bool seek(uint32_t pos, SeekMode mode);
bool seek(uint32_t pos) {
return seek(pos, SeekSet);
}
size_t position() const;
size_t size() const;
void close();
Expand Down

0 comments on commit da4cab5

Please sign in to comment.