[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:
Jonathan Swoboda
2026-03-05 13:16:33 -05:00
committed by GitHub
co-authored by Claude Opus 4.6
parent a061397469
commit 01f4275202
+1 -1
View File
@@ -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()) {