diff --git a/libraries/AP_Airspeed/AP_Airspeed.h b/libraries/AP_Airspeed/AP_Airspeed.h index 6bdd86f65c..4ab2f8e9d6 100644 --- a/libraries/AP_Airspeed/AP_Airspeed.h +++ b/libraries/AP_Airspeed/AP_Airspeed.h @@ -19,7 +19,7 @@ class AP_Airspeed_Backend; #endif #ifndef AP_AIRSPEED_AUTOCAL_ENABLE -#define AP_AIRSPEED_AUTOCAL_ENABLE !defined(HAL_BUILD_AP_PERIPH) +#define AP_AIRSPEED_AUTOCAL_ENABLE AP_AIRSPEED_ENABLED #endif #ifndef HAL_MSP_AIRSPEED_ENABLED