mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-13 13:01:55 +03:00
Add 512k (no SPIFFS) build option (#862)
This commit is contained in:
@ -100,6 +100,10 @@ public:
|
||||
if (SPIFFS_mounted(&_fs) != 0) {
|
||||
return true;
|
||||
}
|
||||
if (_size == 0) {
|
||||
DEBUGV("SPIFFS size is zero");
|
||||
return false;
|
||||
}
|
||||
if (_tryMount()) {
|
||||
return true;
|
||||
}
|
||||
@ -112,6 +116,11 @@ public:
|
||||
}
|
||||
|
||||
bool format() override {
|
||||
if (_size == 0) {
|
||||
DEBUGV("SPIFFS size is zero");
|
||||
return false;
|
||||
}
|
||||
|
||||
bool wasMounted = (SPIFFS_mounted(&_fs) != 0);
|
||||
|
||||
if (_tryMount()) {
|
||||
|
Reference in New Issue
Block a user