Avoid spiffs open fail -10025.

pull/123/head
Hieromon Ikasamo 6 years ago
parent 3966451bf5
commit c8f26a2651
  1. 4
      examples/Elements/Elements.ino

@ -180,7 +180,11 @@ void setup() {
// formatted text using the format attribute. // formatted text using the format attribute.
aux["caption"].value = PARAM_FILE; aux["caption"].value = PARAM_FILE;
#if defined(ARDUINO_ARCH_ESP8266)
SPIFFS.begin(); SPIFFS.begin();
#elif defined(ARDUINO_ARCH_ESP32)
SPIFFS.begin(true);
#endif
File param = SPIFFS.open(PARAM_FILE, "w"); File param = SPIFFS.open(PARAM_FILE, "w");
if (param) { if (param) {
// Save as a loadable set for parameters. // Save as a loadable set for parameters.

Loading…
Cancel
Save