mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-22 21:23:07 +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:
parent
82da5c76b9
commit
bde1ce0e01
@ -126,10 +126,6 @@ public:
|
||||
|
||||
bool begin() override
|
||||
{
|
||||
#if defined(ARDUINO) && !defined(CORE_MOCK)
|
||||
if (&_SPIFFS_end <= &_SPIFFS_start)
|
||||
return false;
|
||||
#endif
|
||||
if (SPIFFS_mounted(&_fs) != 0) {
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user