diff --git a/libraries/AP_TemperatureSensor/AP_TemperatureSensor_MLX90614.cpp b/libraries/AP_TemperatureSensor/AP_TemperatureSensor_MLX90614.cpp index 9c4d3cb37f227..c718bc9d837ef 100644 --- a/libraries/AP_TemperatureSensor/AP_TemperatureSensor_MLX90614.cpp +++ b/libraries/AP_TemperatureSensor/AP_TemperatureSensor_MLX90614.cpp @@ -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); }