Skip to content

Commit

Permalink
AP_Filesystem: add AP_FILESYSTEM_FILE_OPENDIR_ENABLED
Browse files Browse the repository at this point in the history
  • Loading branch information
andyp1per committed Sep 5, 2024
1 parent 47d0667 commit bbe4289
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libraries/AP_Filesystem/AP_Filesystem_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@
#define AP_FILESYSTEM_FILE_READING_ENABLED (AP_FILESYSTEM_FILE_WRITING_ENABLED || AP_FILESYSTEM_ROMFS_ENABLED || AP_FILESYSTEM_SYS_ENABLED || AP_FILESYSTEM_PARAM_ENABLED)
#endif

// AP_FILESYSTEM_FILE_OPENDIR_ENABLED is true if you could expect to
// be able to open and read a non-virtual directory. Notably this excludes
// virtual files like SYSFS, and the magic param/mission upload targets.
#ifndef AP_FILESYSTEM_FILE_OPENDIR_ENABLED
#define AP_FILESYSTEM_FILE_OPENDIR_ENABLED (AP_FILESYSTEM_FILE_WRITING_ENABLED || AP_FILESYSTEM_ROMFS_ENABLED)
#endif

#ifndef AP_FILESYSTEM_SYS_FLASH_ENABLED
#define AP_FILESYSTEM_SYS_FLASH_ENABLED CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
#endif
Expand Down

0 comments on commit bbe4289

Please sign in to comment.