mirror of
https://github.com/m5stack/esphome.git
synced 2026-05-20 11:52:52 -07:00
[veml7700] Fix initial settling timeout using raw enum instead of milliseconds (#14487)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
a061397469
commit
01f4275202
@@ -141,7 +141,7 @@ void VEML7700Component::loop() {
|
||||
// Datasheet: 2.5 ms before the first measurement is needed, allowing for the correct start of the signal processor
|
||||
// and oscillator.
|
||||
// Reality: wait for couple integration times to have first samples captured
|
||||
this->set_timeout(2 * this->integration_time_, [this]() { this->state_ = State::IDLE; });
|
||||
this->set_timeout(2 * get_itime_ms(this->integration_time_), [this]() { this->state_ = State::IDLE; });
|
||||
}
|
||||
|
||||
if (this->is_ready()) {
|
||||
|
||||
Reference in New Issue
Block a user