mirror of
https://github.com/utkumaden/esp-idf-bmx280
synced 2025-01-23 05:26:33 +01:00
Fixes humidity bug in #3. Thanks @kaido42.
This commit is contained in:
parent
d55e743299
commit
298cbec7fc
2
bmx280.c
2
bmx280.c
@ -531,7 +531,7 @@ esp_err_t bmx280_readout(bmx280_t *bmx280, int32_t *temperature, uint32_t *press
|
|||||||
return error;
|
return error;
|
||||||
|
|
||||||
*humidity = bme280_compensate_H_int32(bmx280,
|
*humidity = bme280_compensate_H_int32(bmx280,
|
||||||
(buffer[0] << 8) | buffer[0]
|
(buffer[0] << 8) | buffer[1]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user