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

fix: correct output access in dump_config for available_outputs

This commit is contained in:
Oliver Kleinecke
2025-02-15 12:05:49 +01:00
parent 2eaaafc053
commit ed785319a6

View File

@@ -84,7 +84,7 @@ void DynamicLamp::dump_config() {
} }
for (uint8_t i = 0; i < 16; i++) { for (uint8_t i = 0; i < 16; i++) {
if (this->available_outputs_[i].active) { if (this->available_outputs_[i].active) {
ESP_LOGCONFIG(TAG, "Using output with id .. having level %" PRIu16 " as output number %" PRIu8 "", static_cast<uint16_t>(this->available_outputs_[i].output->state * 1000), i); ESP_LOGCONFIG(TAG, "Using output with id .. having level %" PRIu16 " as output number %" PRIu8 "", static_cast<uint16_t>(this->available_outputs_[i].output.state * 1000), i);
} }
} }
} }