Sub: conditionally compile ADSB support

This commit is contained in:
Andy Piper 2020-09-19 09:38:51 +01:00 committed by Andrew Tridgell
parent c057be8ed1
commit ebef358922

View File

@ -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