[spi_led_strip] Combine log statements to reduce loop blocking (#12968)

This commit is contained in:
J. Nick Koston
2026-01-04 17:00:59 -10:00
committed by GitHub
parent 28d30fdddb
commit 80ab9485e0

View File

@@ -34,8 +34,10 @@ light::LightTraits SpiLedStrip::get_traits() {
return traits;
}
void SpiLedStrip::dump_config() {
esph_log_config(TAG, "SPI LED Strip:");
esph_log_config(TAG, " LEDs: %d", this->num_leds_);
esph_log_config(TAG,
"SPI LED Strip:\n"
" LEDs: %d",
this->num_leds_);
if (this->data_rate_ >= spi::DATA_RATE_1MHZ) {
esph_log_config(TAG, " Data rate: %uMHz", (unsigned) (this->data_rate_ / 1000000));
} else {