1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-21 21:22:31 +03:00

Fix spiffs lseek typo for seek_end (#4287)

This commit is contained in:
Develo
2018-02-06 19:59:16 -03:00
committed by GitHub
parent 4c23e66bba
commit 9694b3e688

View File

@ -329,7 +329,7 @@ public:
if (mode == SeekEnd) { if (mode == SeekEnd) {
offset = -offset; offset = -offset;
} }
auto rc = SPIFFS_lseek(_fs->getFs(), _fd, pos, (int) mode); auto rc = SPIFFS_lseek(_fs->getFs(), _fd, offset, (int) mode);
if (rc < 0) { if (rc < 0) {
DEBUGV("SPIFFS_lseek rc=%d\r\n", rc); DEBUGV("SPIFFS_lseek rc=%d\r\n", rc);
return false; return false;