mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Merge pull request #1575 from openmv/omv_disk_file
stm32: Fix openmv disk file.
This commit is contained in:
commit
9c054e3c36
@ -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));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user