We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 87d337a + ed06696 commit 4381e37Copy full SHA for 4381e37
bme69x.c
@@ -960,11 +960,11 @@ static uint8_t calc_res_heat(uint16_t temp, const struct bme69x_dev *dev)
960
/* @brief This internal API is used to calculate the temperature value. */
961
static float calc_temperature(uint32_t temp_adc, const struct bme69x_dev *dev)
962
{
963
- uint32_t do1, cf;
+ int32_t do1, cf;
964
double dtk1, dtk2, temp1, temp2;
965
double calc_temp;
966
967
- do1 = (uint32_t)dev->calib.par_t1 << 8;
+ do1 = (int32_t)dev->calib.par_t1 << 8;
968
dtk1 = (double)dev->calib.par_t2 / (double)(1ULL << 30);
969
dtk2 = (double)dev->calib.par_t3 / (double)(1ULL << 48);
970
0 commit comments