FATFS: fix system crash when mounting more than 2 volumes

* Fixes https://github.com/espressif/esp-idf/issues/7513
This commit is contained in:
Omar Chebib
2021-12-17 18:12:55 +08:00
parent c14638878b
commit 1bad4f18ed
2 changed files with 27 additions and 3 deletions

View File

@@ -65,7 +65,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 */
#endif
#if FF_STR_VOLUME_ID