AP_RangeFinder: compile mavlink rangefinder in only if HAL_GCS_ENABLED

This commit is contained in:
Peter Barker 2023-08-04 07:41:41 +10:00 committed by Andrew Tridgell
parent d8e205dd39
commit 5670b8a062
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@
#include <AP_Scripting/AP_Scripting_config.h> #include <AP_Scripting/AP_Scripting_config.h>
#include <AP_CANManager/AP_CANManager_config.h> #include <AP_CANManager/AP_CANManager_config.h>
#include <AP_MSP/AP_MSP_config.h> #include <AP_MSP/AP_MSP_config.h>
#include <GCS_MAVLink/GCS_config.h>
#ifndef AP_RANGEFINDER_ENABLED #ifndef AP_RANGEFINDER_ENABLED
#define AP_RANGEFINDER_ENABLED 1 #define AP_RANGEFINDER_ENABLED 1
@ -97,7 +98,7 @@
#endif #endif
#ifndef AP_RANGEFINDER_MAVLINK_ENABLED #ifndef AP_RANGEFINDER_MAVLINK_ENABLED
#define AP_RANGEFINDER_MAVLINK_ENABLED AP_RANGEFINDER_BACKEND_DEFAULT_ENABLED #define AP_RANGEFINDER_MAVLINK_ENABLED AP_RANGEFINDER_BACKEND_DEFAULT_ENABLED && HAL_GCS_ENABLED
#endif #endif
#ifndef AP_RANGEFINDER_MAXBOTIX_SERIAL_ENABLED #ifndef AP_RANGEFINDER_MAXBOTIX_SERIAL_ENABLED