WIP: More porting and work on persistence

Ported packet PROOFs.
Implemented Transport probe destination.
SPIFFs filesystem checks and formatting when necessary.
This commit is contained in:
attermann committed 2023-12-20 11:52:48 -07:00
1 parent 7aac0f4355
commit 03cfb1c03f
15 files changed
+392 -118

No files matched your search

+9
View File
@@ -37,6 +37,15 @@ void listDir(char * dir){
error("SPIFFS filesystem mount failed");
}
else {
// ensure filesystem is writable and format if not
Bytes test;
if (!OS::write_file(test, "/test")) {
info("SPIFFS filesystem is being formatted, please wait...");
SPIFFS.format();
}
else {
OS::remove_file("test");
}
listDir("/");
debug("SPIFFS filesystem is ready");
}