mirror of https://github.com/ArduPilot/ardupilot
AP_TemperatureSensor: new MLX90614 sensor backend driver conversion fix
This commit is contained in:
parent
4eba87d040
commit
7d907e9798
|
@ -48,7 +48,7 @@ void AP_TemperatureSensor_MLX90614::_timer()
|
|||
WITH_SEMAPHORE(_dev->get_semaphore());
|
||||
|
||||
// temp * 0.02 - 273.15 = degrees, temp * 0.02 is temperature in kelvin
|
||||
const float tmp = KELVIN_TO_C(_crude_value) * 0.02;
|
||||
const float tmp = KELVIN_TO_C(_crude_value * 0.02);
|
||||
set_temperature(tmp);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue