1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-09 06:42:20 +01:00

fix: update add_available_output method to use pointer for FloatOutput and rename add_lamp method

This commit is contained in:
Oliver Kleinecke
2025-02-15 11:31:01 +01:00
parent dd065a12f5
commit ff8c45a529
2 changed files with 5 additions and 5 deletions

View File

@@ -93,7 +93,7 @@ void DynamicLamp::set_save_mode(uint8_t save_mode) {
this->save_mode_ = save_mode;
}
void DynamicLamp::add_available_output(FloatOutput &output) {
void DynamicLamp::add_available_output(output::FloatOutput * output) {
uint8_t counter = 0;
while (this->available_outputs_[counter].active) {
counter++;
@@ -106,7 +106,7 @@ void DynamicLamp::add_available_output(FloatOutput &output) {
counter++;
}
uint8_t DynamicLamp::add_lamp() {
uint8_t DynamicLamp::add_lamp_() {
uint8_t i = 0;
while (i < 16) {
if (!this->active_lamps_[i].active) {