From 0e662bbf3551d9e4d9dcd374de571142bf8b3ae2 Mon Sep 17 00:00:00 2001 From: Josh Henderson Date: Mon, 1 Nov 2021 04:12:35 -0400 Subject: [PATCH] AP_WindVane: add define AP_AIRSPEED_ENABLED --- libraries/AP_WindVane/AP_WindVane_Airspeed.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_WindVane/AP_WindVane_Airspeed.cpp b/libraries/AP_WindVane/AP_WindVane_Airspeed.cpp index f52a857d22..094d27cc49 100644 --- a/libraries/AP_WindVane/AP_WindVane_Airspeed.cpp +++ b/libraries/AP_WindVane/AP_WindVane_Airspeed.cpp @@ -17,8 +17,10 @@ void AP_WindVane_Airspeed::update_speed() { +#if AP_AIRSPEED_ENABLED const AP_Airspeed* airspeed = AP_Airspeed::get_singleton(); if (airspeed != nullptr) { _frontend._speed_apparent_raw = airspeed->get_raw_airspeed(); } +#endif }