From ed066962320ccc97e18c91d31567f66ea7bc02a4 Mon Sep 17 00:00:00 2001 From: Maharavan Sundaram Date: Thu, 30 Jan 2025 16:51:54 +0530 Subject: [PATCH] BME69X github release v1.0.2 --- bme69x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bme69x.c b/bme69x.c index 6fb33ad..2cda92a 100644 --- a/bme69x.c +++ b/bme69x.c @@ -960,11 +960,11 @@ static uint8_t calc_res_heat(uint16_t temp, const struct bme69x_dev *dev) /* @brief This internal API is used to calculate the temperature value. */ static float calc_temperature(uint32_t temp_adc, const struct bme69x_dev *dev) { - uint32_t do1, cf; + int32_t do1, cf; double dtk1, dtk2, temp1, temp2; double calc_temp; - do1 = (uint32_t)dev->calib.par_t1 << 8; + do1 = (int32_t)dev->calib.par_t1 << 8; dtk1 = (double)dev->calib.par_t2 / (double)(1ULL << 30); dtk2 = (double)dev->calib.par_t3 / (double)(1ULL << 48);