From ca9c539b95ae7f7f72bc9c97b900656443e881e3 Mon Sep 17 00:00:00 2001 From: Oliver Kleinecke Date: Wed, 19 Feb 2025 12:18:25 +0100 Subject: [PATCH] fix: improve readability of log message in read_timers_to_log function --- esphome/components/dynamic_lamp/dynamic_lamp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/esphome/components/dynamic_lamp/dynamic_lamp.cpp b/esphome/components/dynamic_lamp/dynamic_lamp.cpp index 1434f793c5..200d45ad11 100644 --- a/esphome/components/dynamic_lamp/dynamic_lamp.cpp +++ b/esphome/components/dynamic_lamp/dynamic_lamp.cpp @@ -305,9 +305,9 @@ void DynamicLampComponent::read_timers_to_log() { DynamicLampTimer timer; this->fram_->read((2048), reinterpret_cast(&timer), 24); for (uint8_t j = 0; j < 16; j++) { - bool lamp_included = timer.lamp_list[j / 8] & (1 << (j % 8)); + bool lamp_included = static_cast(timer.lamp_list[j / 8] & (1 << (j % 8))); if (lamp_included && this->active_lamps_[j].active) { - ESP_LOGV(TAG, "Timer found for lamp %s: %d, action: %d, hour: %d, minute: %d, monday: %d, tuesday: %d, wednesday: %d, thursday: %d, friday: %d, saturday: %d, sunday: %d", + ESP_LOGV(TAG, "Timer found for lamp %s |: active: %d, action: %d, hour: %d, minute: %d, monday: %d, tuesday: %d, wednesday: %d, thursday: %d, friday: %d, saturday: %d, sunday: %d", this->active_lamps_[j].name, timer.active, timer.action, timer.hour, timer.minute, timer.monday, timer.tuesday, timer.wednesday, timer.thursday, timer.friday, timer.saturday, timer.sunday); }