mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 09:17:46 +01:00
[BME280] raise standby time (#3804)
This commit is contained in:
parent
fb9984e21f
commit
47a7a239ae
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ void BME280Component::setup() {
|
|||
return;
|
||||
}
|
||||
config_register &= ~0b11111100;
|
||||
config_register |= 0b000 << 5; // 0.5 ms standby time
|
||||
config_register |= 0b101 << 5; // 1000 ms standby time
|
||||
config_register |= (this->iir_filter_ & 0b111) << 2;
|
||||
if (!this->write_byte(BME280_REGISTER_CONFIG, config_register)) {
|
||||
this->mark_failed();
|
||||
|
|
Loading…
Reference in a new issue