mirror of
https://github.com/s00500/ESPUI.git
synced 2024-11-22 04:00:55 +00:00
Fixing ESP8266 file format
This commit is contained in:
parent
9ec0f20f2a
commit
bf8c19c3fc
@ -50,10 +50,16 @@ void ESPUIClass::prepareFileSystem(){
|
||||
// this function should only be used once
|
||||
|
||||
Serial.println('About to prepare filesystem...');
|
||||
|
||||
#if defined(ESP32)
|
||||
if(!SPIFFS.begin(true)) {
|
||||
Serial.println("SPIFFS Mount Failed");
|
||||
return;
|
||||
}
|
||||
#else
|
||||
SPIFFS.begin();
|
||||
SPIFFS.format();
|
||||
#endif
|
||||
|
||||
deleteFile(SPIFFS, "/index.htm");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user