summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--stmhal/diskio.c2
-rw-r--r--stmhal/fatfs/src/ff.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/diskio.c b/stmhal/diskio.c
index 0c67a23d68..4ac3a35aa2 100644
--- a/stmhal/diskio.c
+++ b/stmhal/diskio.c
@@ -15,7 +15,7 @@
#include "storage.h"
#include "sdcard.h"
-PARTITION VolToPart[] = {
+const PARTITION VolToPart[] = {
{0, 1}, // Logical drive 0 ==> Physical drive 0, 1st partition
{1, 0}, // Logical drive 1 ==> Physical drive 1 (auto detection)
/*
diff --git a/stmhal/fatfs/src/ff.h b/stmhal/fatfs/src/ff.h
index 73e5533d99..726d899a97 100644
--- a/stmhal/fatfs/src/ff.h
+++ b/stmhal/fatfs/src/ff.h
@@ -37,7 +37,7 @@ typedef struct {
BYTE pd; /* Physical drive number */
BYTE pt; /* Partition: 0:Auto detect, 1-4:Forced partition) */
} PARTITION;
-extern PARTITION VolToPart[]; /* Volume - Partition resolution table */
+extern const PARTITION VolToPart[]; /* Volume - Partition resolution table */
#define LD2PD(vol) (VolToPart[vol].pd) /* Get physical drive number */
#define LD2PT(vol) (VolToPart[vol].pt) /* Get partition index */