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:
parent
cee308aab1
commit
46918f6f1f
@ -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++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user