From ebef3589222cc6c5f3eeca2b35d5379d620fc316 Mon Sep 17 00:00:00 2001 From: Andy Piper Date: Sat, 19 Sep 2020 09:38:51 +0100 Subject: [PATCH] Sub: conditionally compile ADSB support --- ArduSub/system.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ArduSub/system.cpp b/ArduSub/system.cpp index f137fdb682..3a60df2772 100644 --- a/ArduSub/system.cpp +++ b/ArduSub/system.cpp @@ -288,6 +288,7 @@ bool Sub::should_log(uint32_t mask) // dummy method to avoid linking AFS bool AP_AdvancedFailsafe::gcs_terminate(bool should_terminate, const char *reason) { return false; } AP_AdvancedFailsafe *AP::advancedfailsafe() { return nullptr; } - +#if HAL_ADSB_ENABLED // dummy method to avoid linking AP_Avoidance AP_Avoidance *AP::ap_avoidance() { return nullptr; } +#endif