mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-03 19:29:57 +00:00
22 lines
413 B
C++
22 lines
413 B
C++
|
#include "FSCommon.h"
|
||
|
|
||
|
void fsInit()
|
||
|
{
|
||
|
#ifdef FS
|
||
|
if (!FSBegin())
|
||
|
{
|
||
|
DEBUG_MSG("ERROR filesystem mount Failed\n");
|
||
|
assert(0); // FIXME - report failure to phone
|
||
|
}
|
||
|
|
||
|
DEBUG_MSG("Filesystem files:\n");
|
||
|
File dir = FS.open("/");
|
||
|
File f = dir.openNextFile();
|
||
|
while (f) {
|
||
|
DEBUG_MSG(" %s\n", f.name());
|
||
|
f.close();
|
||
|
f = dir.openNextFile();
|
||
|
}
|
||
|
#endif
|
||
|
}
|