From 9694b3e688d00eaaad3537204b3e9b6f0b6a26c8 Mon Sep 17 00:00:00 2001 From: Develo Date: Tue, 6 Feb 2018 19:59:16 -0300 Subject: [PATCH] Fix spiffs lseek typo for seek_end (#4287) --- 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 612b014b8..4ce8d3e6b 100644 --- a/cores/esp8266/spiffs_api.h +++ b/cores/esp8266/spiffs_api.h @@ -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;