Skip to content

Commit

Permalink
AP_Logger: correct compilation when GCS not available
Browse files Browse the repository at this point in the history
... can't expect to do mavlink logging without GCS available...
  • Loading branch information
peterbarker committed Feb 15, 2024
1 parent 492bbe4 commit a83d971
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/AP_Logger/AP_Logger_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit a83d971

Please sign in to comment.