From c8fc525c2b3648606a10be5b0a238f2ac6608341 Mon Sep 17 00:00:00 2001 From: Rahul Yadav <56602737+rahulOCR@users.noreply.github.com> Date: Wed, 14 Aug 2024 13:22:54 +0530 Subject: [PATCH] Update libraries/AP_TemperatureSensor/AP_TemperatureSensor_MLX90614.cpp Co-authored-by: Peter Barker --- .../AP_TemperatureSensor/AP_TemperatureSensor_MLX90614.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/AP_TemperatureSensor/AP_TemperatureSensor_MLX90614.cpp b/libraries/AP_TemperatureSensor/AP_TemperatureSensor_MLX90614.cpp index 63417113795281..60aa3633bdfe84 100644 --- a/libraries/AP_TemperatureSensor/AP_TemperatureSensor_MLX90614.cpp +++ b/libraries/AP_TemperatureSensor/AP_TemperatureSensor_MLX90614.cpp @@ -41,7 +41,9 @@ void AP_TemperatureSensor_MLX90614::_timer() { const uint16_t _crude_value = read_data(MLX90614_TA); - if (_crude_value > 0) { + if (_crude_value == 0) { + return; + } WITH_SEMAPHORE(_dev->get_semaphore());