From d46d2189ec751bbf16beb399e20426a89447af31 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 15 May 2023 11:44:22 +1000 Subject: [PATCH] GCS_MAVLink: replace HAVE_FILESYSTEM_SUPPORT with backend defines --- libraries/GCS_MAVLink/GCS.h | 4 ---- libraries/GCS_MAVLink/GCS_config.h | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/libraries/GCS_MAVLink/GCS.h b/libraries/GCS_MAVLink/GCS.h index 940c46f98d..c46ffffb43 100644 --- a/libraries/GCS_MAVLink/GCS.h +++ b/libraries/GCS_MAVLink/GCS.h @@ -32,10 +32,6 @@ #define HAL_HIGH_LATENCY2_ENABLED 1 #endif -#ifndef HAL_MAVLINK_INTERVALS_FROM_FILES_ENABLED -#define HAL_MAVLINK_INTERVALS_FROM_FILES_ENABLED (HAVE_FILESYSTEM_SUPPORT && BOARD_FLASH_SIZE > 1024) -#endif - // macros used to determine if a message will fit in the space available. void gcs_out_of_space_to_send(mavlink_channel_t chan); diff --git a/libraries/GCS_MAVLink/GCS_config.h b/libraries/GCS_MAVLink/GCS_config.h index 171765b9d7..42b2a0c97f 100644 --- a/libraries/GCS_MAVLink/GCS_config.h +++ b/libraries/GCS_MAVLink/GCS_config.h @@ -31,3 +31,8 @@ #ifndef AP_MAVLINK_MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES_ENABLED #define AP_MAVLINK_MAV_CMD_REQUEST_AUTOPILOT_CAPABILITIES_ENABLED 1 #endif + +#ifndef HAL_MAVLINK_INTERVALS_FROM_FILES_ENABLED +#define HAL_MAVLINK_INTERVALS_FROM_FILES_ENABLED ((AP_FILESYSTEM_FATFS_ENABLED || AP_FILESYSTEM_POSIX_ENABLED) && BOARD_FLASH_SIZE > 1024) +#endif +