From 6dbf1f2d663b19b623b3376eb2d17ba2155c7124 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 15 May 2023 11:44:22 +1000 Subject: [PATCH] AP_Logger: replace HAVE_FILESYSTEM_SUPPORT with backend defines --- libraries/AP_Logger/AP_Logger_config.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/libraries/AP_Logger/AP_Logger_config.h b/libraries/AP_Logger/AP_Logger_config.h index d7da888b9e..027b68b78f 100644 --- a/libraries/AP_Logger/AP_Logger_config.h +++ b/libraries/AP_Logger/AP_Logger_config.h @@ -17,11 +17,7 @@ #endif #ifndef HAL_LOGGING_FILESYSTEM_ENABLED - #if HAVE_FILESYSTEM_SUPPORT - #define HAL_LOGGING_FILESYSTEM_ENABLED HAL_LOGGING_ENABLED - #else - #define HAL_LOGGING_FILESYSTEM_ENABLED 0 - #endif +#define HAL_LOGGING_FILESYSTEM_ENABLED HAL_LOGGING_ENABLED && AP_FILESYSTEM_FILE_WRITING_ENABLED #endif #if HAL_LOGGING_DATAFLASH_ENABLED @@ -36,10 +32,6 @@ #error Need HAL_BOARD_LOG_DIRECTORY for filesystem backend support #endif -#if !defined (HAVE_FILESYSTEM_SUPPORT) -#error Need HAVE_FILESYSTEM_SUPPORT for filesystem backend support -#endif - #endif #ifndef HAL_LOGGER_FILE_CONTENTS_ENABLED