diff --git a/firmware/filesystem/util.c b/firmware/filesystem/util.c index 0f3c939..2965656 100644 --- a/firmware/filesystem/util.c +++ b/firmware/filesystem/util.c @@ -1,3 +1,4 @@ +#include #include FATFS FatFs; /* File system object for logical drive */ @@ -23,6 +24,11 @@ void fsInit(){ f_mount(0, &FatFs); }; +void fsReInit(){ + f_mount(0, NULL); + f_mount(0, &FatFs); +}; + int readFile(char * filename, char * data, int len){ FIL file; UINT readbytes;