]> granicus.if.org Git - esp-idf/commitdiff
Fix vfs_fat_spiflash failed to mount / f_mkfs()
authorNineis K <is_kk@hotmail.com>
Tue, 2 May 2017 16:23:45 +0000 (23:23 +0700)
committerIvan Grokhotkov <ivan@espressif.com>
Thu, 4 May 2017 09:31:14 +0000 (17:31 +0800)
components/fatfs/src/diskio.c

index c61702f51f7f936f707843212fc6e68da1fe8266..fcf8d8931d8b6de860b94d48e247267b422b4cd8 100644 (file)
@@ -22,10 +22,12 @@ static ff_diskio_impl_t * s_impls[_VOLUMES];
 static sdmmc_card_t* s_cards[_VOLUMES] = { NULL };\r
 static bool s_impls_initialized = false;\r
 \r
+#if _MULTI_PARTITION           /* Multiple partition configuration */\r
 PARTITION VolToPart[] = {\r
-    {0, 1},    /* Logical drive 0 ==> Physical drive 0, 1st partition */\r
+    {0, 0},    /* Logical drive 0 ==> Physical drive 0, auto detection */\r
     {1, 0}     /* Logical drive 1 ==> Physical drive 1, auto detection */\r
 };\r
+#endif\r
 \r
 esp_err_t ff_diskio_get_drive(BYTE* out_pdrv)\r
 {\r