diff options
Diffstat (limited to 'py/runtime.c')
| -rw-r--r-- | py/runtime.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/py/runtime.c b/py/runtime.c index cd02debf8..c407a58a4 100644 --- a/py/runtime.c +++ b/py/runtime.c @@ -103,7 +103,8 @@ void mp_init(void) { #if MICROPY_FSUSERMOUNT // zero out the pointers to the user-mounted devices - memset(MP_STATE_VM(fs_user_mount), 0, sizeof(MP_STATE_VM(fs_user_mount))); + memset(MP_STATE_VM(fs_user_mount) + MICROPY_FATFS_NUM_PERSISTENT, 0, + sizeof(MP_STATE_VM(fs_user_mount)) - MICROPY_FATFS_NUM_PERSISTENT); #endif #if MICROPY_PY_THREAD_GIL |
