summaryrefslogtreecommitdiff
path: root/supervisor
diff options
context:
space:
mode:
authorScott Shawcroft <scott@adafruit.com>2021-03-08 15:25:58 -0800
committerGitHub <noreply@github.com>2021-03-08 15:25:58 -0800
commitb5a955a168230b214f55edd11402f3cf2a233696 (patch)
tree2db447df42aa57bec50ef27b77cd8154028a9235 /supervisor
parent240909ed57515d45bff8f30bd1f90fb2dfb56432 (diff)
parent156ee4833ab170d598991fd8d4d6f6d04c759744 (diff)
Merge pull request #4354 from jepler/disable-fat-partition
circuitpy_mpconfig: Disable flash multi-partition
Diffstat (limited to 'supervisor')
-rw-r--r--supervisor/shared/flash.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/supervisor/shared/flash.c b/supervisor/shared/flash.c
index 1e09fe14b..66f2f0704 100644
--- a/supervisor/shared/flash.c
+++ b/supervisor/shared/flash.c
@@ -213,7 +213,9 @@ void supervisor_flash_init_vfs(fs_user_mount_t *vfs) {
vfs->base.type = &mp_fat_vfs_type;
vfs->flags |= FSUSER_NATIVE | FSUSER_HAVE_IOCTL;
vfs->fatfs.drv = vfs;
+#if MICROPY_FATFS_MULTI_PARTITION
vfs->fatfs.part = 1; // flash filesystem lives on first partition
+#endif
vfs->readblocks[0] = (mp_obj_t)&supervisor_flash_obj_readblocks_obj;
vfs->readblocks[1] = (mp_obj_t)&supervisor_flash_obj;
vfs->readblocks[2] = (mp_obj_t)flash_read_blocks; // native version