开RTC关WIFI,挂载elm

This commit is contained in:
2024-07-30 15:40:39 +08:00
parent c765ad513a
commit aa119aae53
3 changed files with 16 additions and 35 deletions

View File

@@ -72,8 +72,16 @@ static int onboard_fal_mount(void)
}
else
{
LOG_E("Failed to initialize filesystem!");
LOG_D("You should create a filesystem on the block device first!");
dfs_mkfs("elm", flash_dev->parent.name);
if (dfs_mount(flash_dev->parent.name, "/fal", "elm", 0, 0) == 0)
{
LOG_I("Filesystem initialized!");
}
else
{
LOG_E("Failed to initialize filesystem!");
LOG_D("You should create a filesystem on the block device first!");
}
}
return RT_EOK;