Skip to content

Commit 1af0428

Browse files
pabigotcarlescufi
authored andcommitted
samples: usb: mass: set storage device for FatFS
Left unset it becomes the first partition, which is not what's used for littlefs, and specifically isn't on the external flash for nrf52840dk_nrf52840. Signed-off-by: Peter Bigot <[email protected]>
1 parent d32b4bd commit 1af0428

File tree

1 file changed

+1
-0
lines changed
  • samples/subsys/usb/mass/src

1 file changed

+1
-0
lines changed

samples/subsys/usb/mass/src/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ static FATFS fat_fs;
2626
static struct fs_mount_t fs_mnt = {
2727
.type = FS_FATFS,
2828
.mnt_point = FATFS_MNTP,
29+
.storage_dev = (void *)FLASH_AREA_ID(storage),
2930
.fs_data = &fat_fs,
3031
};
3132
#elif CONFIG_FILE_SYSTEM_LITTLEFS

0 commit comments

Comments
 (0)