From 996399331bb0a872ae60260912caba808a8431aa Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sat, 2 Sep 2023 15:21:34 +1000 Subject: [PATCH] AP_Airspeed: allow more libraries to compile with no HAL_GCS_ENABLED --- libraries/AP_Airspeed/Airspeed_Calibration.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libraries/AP_Airspeed/Airspeed_Calibration.cpp b/libraries/AP_Airspeed/Airspeed_Calibration.cpp index 3c5e1dc5b7..1cafcfc6e4 100644 --- a/libraries/AP_Airspeed/Airspeed_Calibration.cpp +++ b/libraries/AP_Airspeed/Airspeed_Calibration.cpp @@ -168,6 +168,7 @@ void AP_Airspeed::update_calibration(const Vector3f &vground, int16_t max_airspe } +#if HAL_GCS_ENABLED void AP_Airspeed::send_airspeed_calibration(const Vector3f &vground) { #if AP_AIRSPEED_AUTOCAL_ENABLE @@ -189,5 +190,6 @@ void AP_Airspeed::send_airspeed_calibration(const Vector3f &vground) (const char *)&packet); #endif // AP_AIRSPEED_AUTOCAL_ENABLE } +#endif // HAL_GCS_ENABLED #endif // AP_AIRSPEED_ENABLED