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