From f8342b92ab82e7561ebc20bb389cae14a971cda8 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Sun, 6 Mar 2022 05:19:19 +0200 Subject: [PATCH] stm32: Fix openmv disk file. * Fixes #1574 --- src/omv/ports/stm32/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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));