Skip to content

Commit 9694b3e

Browse files
authored
Fix spiffs lseek typo for seek_end (#4287)
1 parent 4c23e66 commit 9694b3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp8266/spiffs_api.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ class SPIFFSFileImpl : public FileImpl
329329
if (mode == SeekEnd) {
330330
offset = -offset;
331331
}
332-
auto rc = SPIFFS_lseek(_fs->getFs(), _fd, pos, (int) mode);
332+
auto rc = SPIFFS_lseek(_fs->getFs(), _fd, offset, (int) mode);
333333
if (rc < 0) {
334334
DEBUGV("SPIFFS_lseek rc=%d\r\n", rc);
335335
return false;

0 commit comments

Comments
 (0)