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

Initialize esp32_rmt_led_strip buffer (#8036)

This commit is contained in:
Peter Zich
2025-01-05 17:50:35 -08:00
committed by GitHub
parent 387bde665e
commit dc5b408748

View File

@@ -33,6 +33,7 @@ void ESP32RMTLEDStripLightOutput::setup() {
this->mark_failed();
return;
}
memset(this->buf_, 0, buffer_size);
this->effect_data_ = allocator.allocate(this->num_leds_);
if (this->effect_data_ == nullptr) {