From c53ae2d3ac64df009a4cc622708106165994a856 Mon Sep 17 00:00:00 2001 From: devyte Date: Sun, 4 Feb 2018 01:05:14 -0300 Subject: [PATCH] Fix spiffs lseek typo for seek_end --- cores/esp8266/spiffs_api.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/esp8266/spiffs_api.h b/cores/esp8266/spiffs_api.h index 612b014b8a..4ce8d3e6ba 100644 --- a/cores/esp8266/spiffs_api.h +++ b/cores/esp8266/spiffs_api.h @@ -329,7 +329,7 @@ class SPIFFSFileImpl : public FileImpl 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;