mirror of
https://github.com/esphome/esphome.git
synced 2025-01-10 14:43:17 +01:00
Fix narrowing conversion
This commit is contained in:
parent
42e84f1c58
commit
251889a9e2
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ void LTR390Component::read_mode_(int mode_index) {
|
||||||
this->set_mode_(std::get<0>(this->mode_funcs_->at(mode_index)));
|
this->set_mode_(std::get<0>(this->mode_funcs_->at(mode_index)));
|
||||||
|
|
||||||
// After the sensor integration time do the following
|
// After the sensor integration time do the following
|
||||||
this->set_timeout(RESOLUTIONVALUE[this->res_] * 100, [this, mode_index]() {
|
this->set_timeout(((unsigned int) RESOLUTIONVALUE[this->res_]) * 100, [this, mode_index]() {
|
||||||
// Read from the sensor
|
// Read from the sensor
|
||||||
std::get<1>(this->mode_funcs_->at(mode_index))();
|
std::get<1>(this->mode_funcs_->at(mode_index))();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue