Add ReInit to be used after msc mode
This commit is contained in:
parent
4ed86ed5bc
commit
60e31bbfaf
|
@ -1,3 +1,4 @@
|
|||
#include <sysdefs.h>
|
||||
#include <ff.h>
|
||||
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue