mirror of
https://github.com/esphome/esphome.git
synced 2025-03-14 06:38:17 +00:00
fix: simplify condition check for lamp inclusion in read_timers_to_log
This commit is contained in:
parent
3b679c4aae
commit
e6898b538c
@ -330,7 +330,7 @@ void DynamicLampComponent::read_timers_to_log() {
|
||||
std::string lamp_names_str = "";
|
||||
for (uint8_t j = 0; j < 16; j++) {
|
||||
bool lamp_included = static_cast<bool>(timer.lamp_list[j / 8] & (1 << (j % 8)));
|
||||
if (lamp_included && this->active_lamps_[j].active) {
|
||||
if (lamp_included == true && this->active_lamps_[j].active) {
|
||||
if (lamp_names_str.length() > 0) {
|
||||
lamp_names_str += ", ";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user