summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/CREDITS1
-rw-r--r--firmware/common/disk.c2
-rw-r--r--firmware/export/fat.h4
3 files changed, 6 insertions, 1 deletions
diff --git a/docs/CREDITS b/docs/CREDITS
index 0ef1ce4f0b..beaccaa3f4 100644
--- a/docs/CREDITS
+++ b/docs/CREDITS
@@ -495,6 +495,7 @@ Peter Schlenker
Dan Davison
David Kauffmann
Carsten Schreiter
+Michael Sparmann
The libmad team
The wavpack team
diff --git a/firmware/common/disk.c b/firmware/common/disk.c
index abeadb5c23..c4553099ec 100644
--- a/firmware/common/disk.c
+++ b/firmware/common/disk.c
@@ -68,7 +68,7 @@ int disk_sector_multiplier = 1;
struct partinfo* disk_init(IF_MD_NONVOID(int drive))
{
int i;
- unsigned char sector[512];
+ unsigned char sector[SECTOR_SIZE];
#ifdef HAVE_MULTIDRIVE
/* For each drive, start at a different position, in order not to destroy
the first entry of drive 0.
diff --git a/firmware/export/fat.h b/firmware/export/fat.h
index d6e753f9cb..9a6bcfa1db 100644
--- a/firmware/export/fat.h
+++ b/firmware/export/fat.h
@@ -26,7 +26,11 @@
#include "mv.h" /* for volume definitions */
#include "config.h"
+/* This value can be overwritten by a target in config-[target].h, but
+ that behaviour is still experimental */
+#ifndef SECTOR_SIZE
#define SECTOR_SIZE 512
+#endif
/* Number of bytes reserved for a file name (including the trailing \0).
Since names are stored in the entry as UTF-8, we won't be able to