Skip to content

Commit

Permalink
AP_TemperatureSensor: new MLX90614 sensor backend driver conversion fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulOCR authored and peterbarker committed Sep 19, 2024
1 parent 4eba87d commit 7d907e9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 7d907e9

Please sign in to comment.