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

fix: correct write operation in remove_lamp function of DynamicLampComponent

This commit is contained in:
Oliver Kleinecke 2025-02-19 23:10:30 +01:00
parent fdd33c49ac
commit befb936cb8

View File

@ -164,7 +164,7 @@ void DynamicLampComponent::remove_lamp(std::string lamp_name) {
}
for (uint8_t j = 0; j < 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->lamp_count_--;