mirror of
https://github.com/esphome/esphome.git
synced 2025-03-16 15:48:16 +00:00
fix: correct write operation in remove_lamp function of DynamicLampComponent
This commit is contained in:
parent
fdd33c49ac
commit
befb936cb8
@ -164,7 +164,7 @@ void DynamicLampComponent::remove_lamp(std::string lamp_name) {
|
|||||||
}
|
}
|
||||||
for (uint8_t j = 0; j < 24; j++) {
|
for (uint8_t j = 0; j < 24; j++) {
|
||||||
uint16_t memaddress = (0x0000 + (i * 24) + j);
|
uint16_t memaddress = (0x0000 + (i * 24) + j);
|
||||||
this->fram_->write(memaddress, &{ 0xff }, 1);
|
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