AP_Airspeed: fixed get_temperature on PX4

This commit is contained in:
Andrew Tridgell 2014-02-12 13:46:15 +11:00
parent ccb7dc640d
commit 35791e1f05

View File

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