Skip to content

Commit bde1ce0

Browse files
everslickdevyte
authored andcommitted
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.
1 parent 82da5c7 commit bde1ce0

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

cores/esp8266/spiffs_api.h

-4
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,6 @@ class SPIFFSImpl : public FSImpl
126126

127127
bool begin() override
128128
{
129-
#if defined(ARDUINO) && !defined(CORE_MOCK)
130-
if (&_SPIFFS_end <= &_SPIFFS_start)
131-
return false;
132-
#endif
133129
if (SPIFFS_mounted(&_fs) != 0) {
134130
return true;
135131
}

0 commit comments

Comments
 (0)