diff --git a/esphome/components/ltr390/ltr390.cpp b/esphome/components/ltr390/ltr390.cpp index c1d97758657..5b9f6a1579a 100644 --- a/esphome/components/ltr390/ltr390.cpp +++ b/esphome/components/ltr390/ltr390.cpp @@ -113,12 +113,12 @@ void LTR390Component::read_mode_(LTR390MODE mode) { this->reg(LTR390_GAIN) = this->gain_als_; // Resolution in bits 6:4, rate 0 (fastest); the device slows it to the conversion time this->reg(LTR390_MEAS_RATE) = this->res_als_ << 4; - int_time = ((uint32_t) RESOLUTIONVALUE[this->res_als_]) * 100; + int_time = RESOLUTIONVALUE[this->res_als_] * 100; break; case LTR390_MODE_UVS: this->reg(LTR390_GAIN) = this->gain_uv_; this->reg(LTR390_MEAS_RATE) = this->res_uv_ << 4; - int_time = ((uint32_t) RESOLUTIONVALUE[this->res_uv_]) * 100; + int_time = RESOLUTIONVALUE[this->res_uv_] * 100; break; }