From 7d907e9798a65440275d83436f3085a699da8077 Mon Sep 17 00:00:00 2001 From: Rahul Date: Thu, 19 Sep 2024 15:52:34 +0530 Subject: [PATCH] AP_TemperatureSensor: new MLX90614 sensor backend driver conversion fix --- .../AP_TemperatureSensor/AP_TemperatureSensor_MLX90614.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }