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