AP_Logger: correct compilation when GCS not available

... can't expect to do mavlink logging without GCS available...
This commit is contained in:
Peter Barker 2024-02-15 11:40:29 +11:00 committed by Peter Barker
parent ee3c9765a4
commit 9c97dc99b1
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@
#include <AP_HAL/AP_HAL_Boards.h>
#include <AP_Filesystem/AP_Filesystem_config.h>
#include <GCS_MAVLink/GCS_config.h>
#ifndef HAL_LOGGING_ENABLED
#define HAL_LOGGING_ENABLED 1
@ -17,7 +18,7 @@
#endif
#ifndef HAL_LOGGING_MAVLINK_ENABLED
#define HAL_LOGGING_MAVLINK_ENABLED HAL_LOGGING_BACKEND_DEFAULT_ENABLED
#define HAL_LOGGING_MAVLINK_ENABLED HAL_LOGGING_BACKEND_DEFAULT_ENABLED && HAL_GCS_ENABLED
#endif
#ifndef HAL_LOGGING_FILESYSTEM_ENABLED