mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 07:08:20 +00:00
fix: reorder CombinedLamp struct members for better organization
This commit is contained in:
parent
79b85e2e0c
commit
aa666b4379
@ -314,9 +314,10 @@ void DynamicLampComponent::read_timers_to_log() {
|
|||||||
lamp_names_str += this->active_lamps_[j].name;
|
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 ]",
|
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 ]",
|
||||||
lamp_names_str.c_str(), timer.active, timer.action, timer.hour, timer.minute, timer.monday, timer.tuesday,
|
timer.active, timer.action, timer.hour, timer.minute, timer.monday, timer.tuesday,
|
||||||
timer.wednesday, timer.thursday, timer.friday, timer.saturday, timer.sunday);
|
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) {
|
bool DynamicLampComponent::write_state_(uint8_t lamp_number, float state) {
|
||||||
|
@ -60,10 +60,10 @@ enum DynamicLampIdx : uint8_t {
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct CombinedLamp {
|
struct CombinedLamp {
|
||||||
bool active = false;
|
|
||||||
bool update_ = false;
|
|
||||||
std::string name = "";
|
|
||||||
uint8_t lamp_index;
|
uint8_t lamp_index;
|
||||||
|
bool active = false;
|
||||||
|
std::string name = "";
|
||||||
|
bool update_ = false;
|
||||||
float state_;
|
float state_;
|
||||||
bool used_outputs[16];
|
bool used_outputs[16];
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user