Various fixes for ESP32 (#14102)
This commit is contained in:
committed by
Scott Lahteine
parent
e1bf34bdc9
commit
bc5a1fe562
@@ -28,16 +28,16 @@
|
||||
|
||||
#include "../../core/serial.h"
|
||||
|
||||
#include "FS.h"
|
||||
#include "SPIFFS.h"
|
||||
#include <FS.h>
|
||||
#include <SPIFFS.h>
|
||||
|
||||
bool spiffs_initialized;
|
||||
|
||||
void spiffs_init() {
|
||||
if (SPIFFS.begin())
|
||||
if (SPIFFS.begin(true)) // formatOnFail = true
|
||||
spiffs_initialized = true;
|
||||
else
|
||||
SERIAL_ECHO_MSG("SPIFFS mount failed");
|
||||
SERIAL_ERROR_MSG("SPIFFS mount failed");
|
||||
}
|
||||
|
||||
#endif // WEBSUPPORT
|
||||
|
||||
Reference in New Issue
Block a user