Skip to content

Commit

Permalink
AP_Filesystem: rearrange to put mission filesystem last
Browse files Browse the repository at this point in the history
We're developing loops in our config files, move include to after base FILESYSTEM_READING/FILESYSTEM_WRITING defines
  • Loading branch information
peterbarker authored and tridge committed Sep 24, 2024
1 parent ee83035 commit a8cc071
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions libraries/AP_Filesystem/AP_Filesystem_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

#include <AP_HAL/AP_HAL_Boards.h>

#include <AP_Mission/AP_Mission_config.h>

// backends:

#ifndef AP_FILESYSTEM_ESP32_ENABLED
Expand All @@ -14,10 +12,6 @@
#define AP_FILESYSTEM_FATFS_ENABLED HAL_OS_FATFS_IO
#endif

#ifndef AP_FILESYSTEM_MISSION_ENABLED
#define AP_FILESYSTEM_MISSION_ENABLED AP_MISSION_ENABLED
#endif

#ifndef AP_FILESYSTEM_PARAM_ENABLED
#define AP_FILESYSTEM_PARAM_ENABLED 1
#endif
Expand Down Expand Up @@ -62,3 +56,8 @@
#ifndef AP_FILESYSTEM_HAVE_DIRENT_DTYPE
#define AP_FILESYSTEM_HAVE_DIRENT_DTYPE 1
#endif

#ifndef AP_FILESYSTEM_MISSION_ENABLED
#include <AP_Mission/AP_Mission_config.h>
#define AP_FILESYSTEM_MISSION_ENABLED AP_MISSION_ENABLED
#endif

0 comments on commit a8cc071

Please sign in to comment.