Merge pull request #1575 from openmv/omv_disk_file

stm32: Fix openmv disk file.
This commit is contained in:
Ibrahim Abdelkader 2022-03-06 05:26:26 +02:00 committed by GitHub
commit 9c054e3c36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -499,9 +499,6 @@ soft_reset:
#endif
#endif
// Mark FS as OpenMV disk.
f_touch_helper("/.openmv_disk");
// Mount the storage device (there should be no other devices mounted at this point)
// we allocate this structure on the heap because vfs->next is a root pointer.
mp_vfs_mount_t *vfs = m_new_obj_maybe(mp_vfs_mount_t);
@ -516,6 +513,9 @@ soft_reset:
MP_STATE_VM(vfs_mount_table) = vfs;
MP_STATE_PORT(vfs_cur) = vfs;
// Mark FS as OpenMV disk.
f_touch_helper("/.openmv_disk");
// Parse OpenMV configuration file.
openmv_config_t openmv_config;
memset(&openmv_config, 0, sizeof(openmv_config));