diff --git a/libraries/AP_Airspeed/AP_Airspeed_PX4.cpp b/libraries/AP_Airspeed/AP_Airspeed_PX4.cpp index e0ccfb4137..b549ff36d5 100644 --- a/libraries/AP_Airspeed/AP_Airspeed_PX4.cpp +++ b/libraries/AP_Airspeed/AP_Airspeed_PX4.cpp @@ -76,7 +76,8 @@ bool AP_Airspeed_PX4::get_differential_pressure(float &pressure) // read the temperature bool AP_Airspeed_PX4::get_temperature(float &temperature) { - return _temperature; + temperature = _temperature; + return true; } #endif // CONFIG_HAL_BOARD