1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00

Remove redundant check for zero size SPIFFS partition (#5841)

The check if the end address of the SPIFFS partition is smaller or equal to the start of the partition breaks sketches that are linked with zero size SPIFFS linker scripts, but create their own SPIFFS partition later at arbitrary flash locations. But this check can safely be removed, because the check if the the SPIFFS partition is of size 0 is done a few lines further down anyway.
This commit is contained in:
Clemens Kirchgatterer 2019-03-05 13:24:45 +01:00 committed by Develo
parent 82da5c76b9
commit bde1ce0e01

View File

@ -126,10 +126,6 @@ public:
bool begin() override bool begin() override
{ {
#if defined(ARDUINO) && !defined(CORE_MOCK)
if (&_SPIFFS_end <= &_SPIFFS_start)
return false;
#endif
if (SPIFFS_mounted(&_fs) != 0) { if (SPIFFS_mounted(&_fs) != 0) {
return true; return true;
} }