AP_Airspeed: allow more libraries to compile with no HAL_GCS_ENABLED

This commit is contained in:
Peter Barker 2023-09-02 15:21:34 +10:00 committed by Peter Barker
parent 73a09f3dc5
commit 996399331b
1 changed files with 2 additions and 0 deletions

View File

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