1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-13 22:28:14 +00:00

Update ds248x.cpp

variable 'nbr_sensors' set but not used
This commit is contained in:
Iron Man 2024-04-23 22:37:54 +02:00 committed by GitHub
parent cee308aab1
commit 46918f6f1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -248,15 +248,11 @@ void DS248xComponent::register_sensor(DS248xTemperatureSensor *sensor) {
void DS248xComponent::update() {
uint8_t channel = 0;
uint8_t nbr_channels = 1;
int nbr_sensors = 0;
uint8_t nbr_channels = 1;
int nbr_sensors_on_channel = 0;
if (this->ds248x_type_ == DS248xType::DS2482_800) {
nbr_channels = NBR_CHANNELS;
for (channel = 0; channel < nbr_channels; channel++) {
nbr_sensors += channel_sensors_[channel].size();
}
}
for (channel = 0; channel < nbr_channels; channel++) {