mirror of
https://github.com/esphome/esphome.git
synced 2025-09-06 05:12:21 +01:00
fix: change counter type to uint8_t and update get_lamp_outputs_ to use active_lamps_ member
This commit is contained in:
@@ -89,7 +89,7 @@ void DynamicLamp::set_save_mode(uint8_t save_mode) {
|
||||
}
|
||||
|
||||
void DynamicLamp::set_available_outputs(std::string output_list) {
|
||||
int counter = 0;
|
||||
uint8_t counter = 0;
|
||||
std::vector<std::string> v;
|
||||
|
||||
char * token = strtok (&output_list[0],",");
|
||||
@@ -126,7 +126,7 @@ void DynamicLamp::add_lamp_output_(uint8_t lamp_number, LinkedOutput output) {
|
||||
std::array<bool, 16> DynamicLamp::get_lamp_outputs_(uint8_t lamp_number) {
|
||||
std::array<bool, 16> bool_array;
|
||||
for (uint8_t i = 0; i < 16; i++) {
|
||||
bool_array[i] = this->active_lamps[lamp_number].used_outputs[i];
|
||||
bool_array[i] = this->active_lamps_[lamp_number].used_outputs[i];
|
||||
}
|
||||
return bool_array;
|
||||
}
|
||||
|
Reference in New Issue
Block a user