From 466ed3565d6fcaea711aca95f43bbc95e830b81d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20M=C3=BAdry?= Date: Thu, 17 Aug 2023 21:23:35 +0200 Subject: [PATCH] fix(fatfs): Fix a warning when FF_VOLUMES is set to 1 Closes https://github.com/espressif/esp-idf/issues/12089 --- components/fatfs/diskio/diskio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/fatfs/diskio/diskio.c b/components/fatfs/diskio/diskio.c index 7014327986..4bafa7ea6d 100644 --- a/components/fatfs/diskio/diskio.c +++ b/components/fatfs/diskio/diskio.c @@ -21,7 +21,9 @@ static ff_diskio_impl_t * s_impls[FF_VOLUMES] = { NULL }; #if FF_MULTI_PARTITION /* Multiple partition configuration */ const PARTITION VolToPart[FF_VOLUMES] = { {0, 0}, /* Logical drive 0 ==> Physical drive 0, auto detection */ +#if FF_VOLUMES > 1 {1, 0}, /* Logical drive 1 ==> Physical drive 1, auto detection */ +#endif #if FF_VOLUMES > 2 {2, 0}, /* Logical drive 2 ==> Physical drive 2, auto detection */ #endif