Skip to content

Commit 4381e37

Browse files
Merge pull request #1 from boschsensortec/v1.0.2
BME69X github release v1.0.2
2 parents 87d337a + ed06696 commit 4381e37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bme69x.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -960,11 +960,11 @@ static uint8_t calc_res_heat(uint16_t temp, const struct bme69x_dev *dev)
960960
/* @brief This internal API is used to calculate the temperature value. */
961961
static float calc_temperature(uint32_t temp_adc, const struct bme69x_dev *dev)
962962
{
963-
uint32_t do1, cf;
963+
int32_t do1, cf;
964964
double dtk1, dtk2, temp1, temp2;
965965
double calc_temp;
966966

967-
do1 = (uint32_t)dev->calib.par_t1 << 8;
967+
do1 = (int32_t)dev->calib.par_t1 << 8;
968968
dtk1 = (double)dev->calib.par_t2 / (double)(1ULL << 30);
969969
dtk2 = (double)dev->calib.par_t3 / (double)(1ULL << 48);
970970

0 commit comments

Comments
 (0)