mirror of
https://github.com/ratspeak/microReticulum
synced 2026-11-27 13:52:14 +00:00
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:
1 parent
7aac0f4355
commit
03cfb1c03f
15 files changed
+392
-118
No files matched your search
@@ -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");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user