mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 15:18:16 +00:00
fix: correct memory address calculation in remove_lamp function of DynamicLampComponent
This commit is contained in:
parent
aa8ba87371
commit
fdd33c49ac
@ -163,7 +163,8 @@ void DynamicLampComponent::remove_lamp(std::string lamp_name) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (uint8_t j = 0; j < 24; j++) {
|
for (uint8_t j = 0; j < 24; j++) {
|
||||||
this->fram_->write((0x0000 + (i * 24) + j), { 0xff }, 1);
|
uint16_t memaddress = (0x0000 + (i * 24) + j);
|
||||||
|
this->fram_->write(memaddress, &{ 0xff }, 1);
|
||||||
}
|
}
|
||||||
this->active_lamps_[i].active = false;
|
this->active_lamps_[i].active = false;
|
||||||
this->lamp_count_--;
|
this->lamp_count_--;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user