From 60e31bbfafff13e766df5336af03589292c4195b Mon Sep 17 00:00:00 2001 From: Stefan `Sec` Zehl Date: Mon, 1 Aug 2011 23:51:41 +0200 Subject: [PATCH] Add ReInit to be used after msc mode --- firmware/filesystem/util.c | 6 ++++++ 1 file changed, 6 insertions(+) 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;