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

fix: remove commented-out code for lamp list handling in read_timers_to_log for clarity

This commit is contained in:
Oliver Kleinecke 2025-02-19 10:58:20 +01:00
parent 799c8631b6
commit c3a9ca8e88

View File

@ -304,7 +304,6 @@ void DynamicLampComponent::read_timers_to_log() {
if (this->active_lamps_[i].active) {
DynamicLampTimer timer;
this->fram_->read((2048), reinterpret_cast<unsigned char *>(&timer), 24);
//std::vector<bool> lamp_list = *reinterpret_cast<std::vector<bool> *>(&timer.lamp_list);
for (uint8_t j = 0; j < 16; j++) {
bool lamp_included = timer.lamp_list[j / 8] & (1 << (j % 8));
if (lamp_included && this->active_lamps_[j].active) {