mirror of
https://github.com/esphome/esphome.git
synced 2025-01-31 10:10:56 +00:00
Bme680 pressure value fix (#550)
* Add heater bit masks * Fix erroneous pressure value for BME680 * Revert "Add heater bit masks" This reverts commit c7629f106c26c9524906b0d2d247a0041f4bf130.
This commit is contained in:
parent
ed61c1dd58
commit
8c73558165
@ -232,7 +232,7 @@ float BME680Component::get_setup_priority() const { return setup_priority::DATA;
|
||||
void BME680Component::update() {
|
||||
uint8_t meas_control = 0; // No need to fetch, we're setting all fields
|
||||
meas_control |= (this->temperature_oversampling_ & 0b111) << 5;
|
||||
meas_control |= (this->pressure_oversampling_ & 0b111) << 5;
|
||||
meas_control |= (this->pressure_oversampling_ & 0b111) << 2;
|
||||
meas_control |= 0b01; // forced mode
|
||||
if (!this->write_byte(BME680_REGISTER_CONTROL_MEAS, meas_control)) {
|
||||
this->status_set_warning();
|
||||
|
Loading…
x
Reference in New Issue
Block a user