mirror of
https://github.com/esphome/esphome.git
synced 2025-09-22 13:12:22 +01:00
Reduce ESP_LOGCONFIG calls (#9026)
This commit is contained in:
@@ -18,9 +18,11 @@ void FastLEDLightOutput::setup() {
|
||||
}
|
||||
}
|
||||
void FastLEDLightOutput::dump_config() {
|
||||
ESP_LOGCONFIG(TAG, "FastLED light:");
|
||||
ESP_LOGCONFIG(TAG, " Num LEDs: %u", this->num_leds_);
|
||||
ESP_LOGCONFIG(TAG, " Max refresh rate: %u", *this->max_refresh_rate_);
|
||||
ESP_LOGCONFIG(TAG,
|
||||
"FastLED light:\n"
|
||||
" Num LEDs: %u\n"
|
||||
" Max refresh rate: %u",
|
||||
this->num_leds_, *this->max_refresh_rate_);
|
||||
}
|
||||
void FastLEDLightOutput::write_state(light::LightState *state) {
|
||||
// protect from refreshing too often
|
||||
|
Reference in New Issue
Block a user