1
0
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:
Ivan Grokhotkov
2015-10-25 21:11:10 +03:00
parent e3518a5722
commit f328e66fd7
4 changed files with 41 additions and 9 deletions

View File

@ -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()) {