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