diff --git a/src/omv/ports/stm32/main.c b/src/omv/ports/stm32/main.c index 2e8eeb29d..87c9de34b 100644 --- a/src/omv/ports/stm32/main.c +++ b/src/omv/ports/stm32/main.c @@ -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));