File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515#include "storage.h"
1616#include "sdcard.h"
1717
18- PARTITION VolToPart [] = {
18+ const PARTITION VolToPart [] = {
1919 {0 , 1 }, // Logical drive 0 ==> Physical drive 0, 1st partition
2020 {1 , 0 }, // Logical drive 1 ==> Physical drive 1 (auto detection)
2121 /*
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ typedef struct {
3737 BYTE pd ; /* Physical drive number */
3838 BYTE pt ; /* Partition: 0:Auto detect, 1-4:Forced partition) */
3939} PARTITION ;
40- extern PARTITION VolToPart []; /* Volume - Partition resolution table */
40+ extern const PARTITION VolToPart []; /* Volume - Partition resolution table */
4141#define LD2PD (vol ) (VolToPart[vol].pd) /* Get physical drive number */
4242#define LD2PT (vol ) (VolToPart[vol].pt) /* Get partition index */
4343
You can’t perform that action at this time.
0 commit comments