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:
@ -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;
|
||||
|
Reference in New Issue
Block a user