diff --git a/Rover/system.cpp b/Rover/system.cpp index fbdeabc12f..995b1f382b 100644 --- a/Rover/system.cpp +++ b/Rover/system.cpp @@ -299,6 +299,7 @@ bool Rover::is_boat() const #include #include - +#if HAL_ADSB_ENABLED // dummy method to avoid linking AP_Avoidance AP_Avoidance *AP::ap_avoidance() { return nullptr; } +#endif