Skip to content

Commit

Permalink
Update libraries/AP_TemperatureSensor/AP_TemperatureSensor_MLX90614.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Peter Barker <[email protected]>
  • Loading branch information
rahulOCR and peterbarker authored Aug 14, 2024
1 parent cd477e7 commit c8fc525
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit c8fc525

Please sign in to comment.