Tracker: conditionally compile ADSB support

This commit is contained in:
Andy Piper 2020-09-19 09:39:30 +01:00 committed by Andrew Tridgell
parent aa64ab0501
commit 2f985c77d8
1 changed files with 2 additions and 1 deletions

View File

@ -247,6 +247,7 @@ bool Tracker::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