Skip to content

Commit d32b4bd

Browse files
pabigotcarlescufi
authored andcommitted
samples: usb: mass: fix to support FatFS on external file system
The flash interface header needs to be available regardless of selected filesystem implementation. Signed-off-by: Peter Bigot <[email protected]>
1 parent 06afe55 commit d32b4bd

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
LOG_MODULE_REGISTER(main);
1616

1717
#if CONFIG_DISK_ACCESS_FLASH
18+
#include <storage/flash_map.h>
1819
#if CONFIG_FAT_FILESYSTEM_ELM
1920
#include <fs/fs.h>
2021
#include <ff.h>
@@ -30,7 +31,6 @@ static struct fs_mount_t fs_mnt = {
3031
#elif CONFIG_FILE_SYSTEM_LITTLEFS
3132
#include <fs/fs.h>
3233
#include <fs/littlefs.h>
33-
#include <storage/flash_map.h>
3434

3535
FS_LITTLEFS_DECLARE_DEFAULT_CONFIG(storage);
3636
static struct fs_mount_t fs_mnt = {

0 commit comments

Comments
 (0)