mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-02 18:59:56 +00:00
d7d13d637c
@mc-hamster seems to work pretty good for me, so I'll send a PR to you for the dev-http branch. I'll push out an android alpha build later today (once the build is complete). Once this new device load is out in the field _future_ device builds will support updating spiffs from android. (i.e. device loads older than 1.1.9 must be updated to 1.1.9 or later before spiffs support is implemented on the device side - so some users might need to update twice before the new spiffs contents will appear on their device)
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
|
|
}
|