1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-20 10:24:18 +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) {
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) {
DEBUGV("SPIFFS_lseek rc=%d\r\n", rc);
return false;