From 343f1182b9bc7b7ef4fd519d8b0e984fcb1bd36e Mon Sep 17 00:00:00 2001 From: d0k3 Date: Sat, 9 Sep 2017 19:12:28 +0200 Subject: [PATCH] Fix writing in drives A: / B: Thanks @AuroraWright for finding this bug --- source/filesys/fsinit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/filesys/fsinit.c b/source/filesys/fsinit.c index c797c98..9567a0d 100644 --- a/source/filesys/fsinit.c +++ b/source/filesys/fsinit.c @@ -5,8 +5,8 @@ #include "image.h" #include "ff.h" -// don't use this area for anything else! -static FATFS* fs = (FATFS*) 0x20316000; +// FATFS filesystem objects (x10) +static FATFS fs[NORM_FS]; // currently open file systems static bool fs_mounted[NORM_FS] = { false };