diff --git a/libraries/AP_Filesystem/AP_Filesystem_config.h b/libraries/AP_Filesystem/AP_Filesystem_config.h index 93e307ed7e..a23b1f2c1b 100644 --- a/libraries/AP_Filesystem/AP_Filesystem_config.h +++ b/libraries/AP_Filesystem/AP_Filesystem_config.h @@ -2,8 +2,6 @@ #include -#include - // backends: #ifndef AP_FILESYSTEM_ESP32_ENABLED @@ -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 @@ -62,3 +56,8 @@ #ifndef AP_FILESYSTEM_HAVE_DIRENT_DTYPE #define AP_FILESYSTEM_HAVE_DIRENT_DTYPE 1 #endif + +#ifndef AP_FILESYSTEM_MISSION_ENABLED +#include +#define AP_FILESYSTEM_MISSION_ENABLED AP_MISSION_ENABLED +#endif