소스 검색

[DFS] fix the mkfs issue for multi-mounted fatfs

Bernard Xiong 6 년 전
부모
커밋
8baf3d98e1
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      components/dfs/filesystems/elmfat/dfs_elm.c

+ 4 - 0
components/dfs/filesystems/elmfat/dfs_elm.c

@@ -269,6 +269,10 @@ int dfs_elm_mkfs(rt_device_t dev_id)
             f_mount(fat, logic_nbr, (BYTE)index);
         }
     }
+    else
+    {
+        logic_nbr[0] = '0' + index;
+    }
 
     /* [IN] Logical drive number */
     /* [IN] Format options */