mirror of
https://github.com/esphome/esphome.git
synced 2026-10-21 13:34:12 +00:00
Merge remote-tracking branch 'origin/ltr390-integration-time' into ltr390-pack
# Conflicts: # esphome/components/ltr390/ltr390.cpp
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user