diff --git a/libraries/AP_BoardConfig/AP_BoardConfig_config.h b/libraries/AP_BoardConfig/AP_BoardConfig_config.h index 95c4092eb9..c85f95439a 100644 --- a/libraries/AP_BoardConfig/AP_BoardConfig_config.h +++ b/libraries/AP_BoardConfig/AP_BoardConfig_config.h @@ -33,5 +33,5 @@ #endif #ifndef AP_SDCARD_STORAGE_ENABLED -#define AP_SDCARD_STORAGE_ENABLED (HAL_MEM_CLASS >= HAL_MEM_CLASS_1000) && HAVE_FILESYSTEM_SUPPORT && BOARD_FLASH_SIZE > 1024 +#define AP_SDCARD_STORAGE_ENABLED (HAL_MEM_CLASS >= HAL_MEM_CLASS_1000) && (AP_FILESYSTEM_POSIX_ENABLED || AP_FILESYSTEM_FATFS_ENABLED) && BOARD_FLASH_SIZE > 1024 #endif