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

fix: reorder CombinedLamp struct members for better organization

This commit is contained in:
Oliver Kleinecke 2025-02-19 13:50:19 +01:00
parent 79b85e2e0c
commit aa666b4379
2 changed files with 6 additions and 5 deletions

View File

@ -314,9 +314,10 @@ void DynamicLampComponent::read_timers_to_log() {
lamp_names_str += this->active_lamps_[j].name;
}
}
ESP_LOGV(TAG, "Timer found for lamps [%s]: [ active: %d, action: %d, hour: %d, minute: %d, monday: %d, tuesday: %d, wednesday: %d, thursday: %d, friday: %d, saturday: %d, sunday: %d ]",
lamp_names_str.c_str(), timer.active, timer.action, timer.hour, timer.minute, timer.monday, timer.tuesday,
ESP_LOGV(TAG, "Timer found: [ active: %d, action: %d, hour: %d, minute: %d, monday: %d, tuesday: %d, wednesday: %d, thursday: %d, friday: %d, saturday: %d, sunday: %d ]",
timer.active, timer.action, timer.hour, timer.minute, timer.monday, timer.tuesday,
timer.wednesday, timer.thursday, timer.friday, timer.saturday, timer.sunday);
ESP_LOGV(TAG, "Timer active for lamps %s", lamp_names_str.c_str());
}
bool DynamicLampComponent::write_state_(uint8_t lamp_number, float state) {

View File

@ -60,10 +60,10 @@ enum DynamicLampIdx : uint8_t {
};
struct CombinedLamp {
bool active = false;
bool update_ = false;
std::string name = "";
uint8_t lamp_index;
bool active = false;
std::string name = "";
bool update_ = false;
float state_;
bool used_outputs[16];
};