mirror of
https://github.com/esphome/esphome.git
synced 2025-11-18 15:55:46 +00:00
Merge branch 'integration' into memory_api
This commit is contained in:
@@ -131,7 +131,8 @@ void BH1750Sensor::loop() {
|
|||||||
this->process_coarse_result_(lx);
|
this->process_coarse_result_(lx);
|
||||||
|
|
||||||
// Start fine measurement with optimal settings
|
// Start fine measurement with optimal settings
|
||||||
if (!this->start_measurement_(this->fine_mode_, this->fine_mtreg_, now)) {
|
// fetch millis() again since the read can take a bit
|
||||||
|
if (!this->start_measurement_(this->fine_mode_, this->fine_mtreg_, millis())) {
|
||||||
this->fail_and_reset_();
|
this->fail_and_reset_();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user