From a177fbd7c43eaf7327b842380e6b1557f2f3ac15 Mon Sep 17 00:00:00 2001 From: Clemens Kirchgatterer Date: Fri, 25 Oct 2019 18:00:07 +0200 Subject: [PATCH] Reapply fix for redundant FS size check My fix for a redundant FS size check was merged, (https://github.com/esp8266/Arduino/commit/bde1ce0e012321dff7d57900c920fb6314e7c6ca#diff-6690102111beb33824c743666a874d7c) but later reverted (https://github.com/esp8266/Arduino/commit/a389a995fb12459819e33970ec80695f1eaecc58#diff-6690102111beb33824c743666a874d7c) I guess by accident. --- cores/esp8266/spiffs_api.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cores/esp8266/spiffs_api.h b/cores/esp8266/spiffs_api.h index 862813bb40..c19dbc2c4e 100644 --- a/cores/esp8266/spiffs_api.h +++ b/cores/esp8266/spiffs_api.h @@ -171,11 +171,6 @@ class SPIFFSImpl : public FSImpl bool begin() override { -#if defined(ARDUINO) && !defined(CORE_MOCK) - if (&_FS_end <= &_FS_start) - return false; -#endif - if (SPIFFS_mounted(&_fs) != 0) { return true; }