1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-14 06:38:17 +00:00

fix: remove unnecessary variable assignment in restore_lamp_settings_ function of DynamicLampComponent

This commit is contained in:
Oliver Kleinecke 2025-02-19 22:33:48 +01:00
parent 2acd5fe505
commit 2fd5fe2d49

View File

@ -431,7 +431,7 @@ void DynamicLampComponent::restore_lamp_settings_() {
case SAVE_MODE_FRAM:
CombinedLamp lamp;
for (uint8_t i=0; i < 16; i++) {
lamp = this->fram_->read((0x0000 + (i * 24)), reinterpret_cast<unsigned char *>(&lamp), 24);
this->fram_->read((0x0000 + (i * 24)), reinterpret_cast<unsigned char *>(&lamp), 24);
if (lamp.validation_byte == 'L' && lamp.active == true) {
this->active_lamps_[i] = lamp;
for (uint8_t j = 0; j < 16; j++) {