Skip to content

Commit 58e42ca

Browse files
authored
【修改】修改imx6ull-smart中mnt.c的逻辑错误 (#9045)
* Update mnt.c * Update mnt.c * Update mnt.c * Add files via upload * Update mnt.c * Update mnt.c
1 parent 40e64e5 commit 58e42ca

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

bsp/nxp/imx/imx6ull-smart/applications/mnt.c

+9-12
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,20 @@ int mnt_init(void)
2222
int part_id = 0;
2323
if (dfs_mount("emmc0", "/", "elm", 0, (void *)part_id) != 0)
2424
{
25-
rt_kprintf("Dir / emmc mount failed!\n");
26-
return -1;
25+
if (dfs_mount("sd0", "/", "elm", 0, (void *)part_id) != 0)
26+
{
27+
rt_kprintf("Dir / mount failed!\n");
28+
return -1;
29+
}
30+
else
31+
{
32+
rt_kprintf("sd0 file system initialization done!\n");
33+
}
2734
}
2835
else
2936
{
3037
rt_kprintf("emmc file system initialization done!\n");
3138
}
32-
33-
if (dfs_mount("sd0", "/", "elm", 0, (void *)part_id) != 0)
34-
{
35-
rt_kprintf("Dir / mount failed!\n");
36-
return -1;
37-
}
38-
else
39-
{
40-
rt_kprintf("sd0 file system initialization done!\n");
41-
}
4239
#else
4340
rt_thread_mdelay(500);
4441
if (dfs_mount(NULL, "/", "rom", 0, &romfs_root) != 0)
Binary file not shown.

0 commit comments

Comments
 (0)