From 20fa2b0741982c77750e817114ffa01a32d9a986 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Tue, 12 Nov 2024 15:14:16 +1100 Subject: [PATCH] AP_GPS: don't compile support for sending rtk messages if no backend supports it --- libraries/AP_GPS/AP_GPS_config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_GPS/AP_GPS_config.h b/libraries/AP_GPS/AP_GPS_config.h index 467c056ab4..550add0e1f 100644 --- a/libraries/AP_GPS/AP_GPS_config.h +++ b/libraries/AP_GPS/AP_GPS_config.h @@ -115,9 +115,9 @@ #endif #ifndef AP_GPS_GPS_RTK_SENDING_ENABLED -#define AP_GPS_GPS_RTK_SENDING_ENABLED HAL_GCS_ENABLED && AP_GPS_ENABLED +#define AP_GPS_GPS_RTK_SENDING_ENABLED HAL_GCS_ENABLED && AP_GPS_ENABLED && (AP_GPS_SBF_ENABLED || AP_GPS_ERB_ENABLED) #endif #ifndef AP_GPS_GPS2_RTK_SENDING_ENABLED -#define AP_GPS_GPS2_RTK_SENDING_ENABLED HAL_GCS_ENABLED && AP_GPS_ENABLED && GPS_MAX_RECEIVERS > 1 +#define AP_GPS_GPS2_RTK_SENDING_ENABLED HAL_GCS_ENABLED && AP_GPS_ENABLED && GPS_MAX_RECEIVERS > 1 && (AP_GPS_SBF_ENABLED || AP_GPS_ERB_ENABLED) #endif