Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions components/micropython/port/src/maixpy_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,8 @@ MP_NOINLINE STATIC spiffs_user_mount_t *init_flash_spiffs()
return vfs_spiffs;
}

STATIC bool mpy_mount_spiffs(spiffs_user_mount_t *spiffs)
STATIC bool mpy_mount_spiffs(spiffs_user_mount_t *spiffs, mp_vfs_mount_t *vfs)
{
mp_vfs_mount_t *vfs = m_new_obj(mp_vfs_mount_t);
if (vfs == NULL)
{
printk("[MaixPy]:can't mount flash\n");
Expand Down Expand Up @@ -594,8 +593,9 @@ void mp_task(void *pvParameter)
#endif
peripherals_init();
// initialise peripherals
main_vfs = m_new_obj(mp_vfs_mount_t);
bool mounted_flash = false;
mounted_flash = mpy_mount_spiffs(&spiffs_user_mount_handle); //init spiffs of flash
mounted_flash = mpy_mount_spiffs(&spiffs_user_mount_handle, main_vfs); //init spiffs of flash
if (mounted_flash)
// { // Uncomment to enable load config from /flash/config.json
// maix_config_init();
Expand Down