Commit 17065dfd authored by lbernstone's avatar lbernstone Committed by Me No Dev

Added a define to format the spiffs in SPIFFS_Test.ino (#1662)

* Added a define to format the spiffs in SPIFFS_Test.ino

* Uncommented the define

* Matched define names
parent 2f5b3c0c
#include "FS.h"
#include "SPIFFS.h"
/* You only need to format SPIFFS the first time you run a
test or else use the SPIFFS plugin to create a partition
https://github.com/me-no-dev/arduino-esp32fs-plugin */
#define FORMAT_SPIFFS_IF_FAILED true
void listDir(fs::FS &fs, const char * dirname, uint8_t levels){
Serial.printf("Listing directory: %s\r\n", dirname);
......@@ -151,7 +156,7 @@ void testFileIO(fs::FS &fs, const char * path){
void setup(){
Serial.begin(115200);
if(!SPIFFS.begin()){
if(!SPIFFS.begin(FORMAT_SPIFFS_IF_FAILED)){
Serial.println("SPIFFS Mount Failed");
return;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment