Merge remote-tracking branch 'origin/ltr390-integration-time' into ltr390-pack

# Conflicts:
#	esphome/components/ltr390/ltr390.cpp
This commit is contained in:
J. Nick Koston
2026-10-20 04:46:25 -10:00
+2 -2
View File
@@ -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;
}