esp32_rmt_led_strip bugfixes (#6506)

This commit is contained in:
Mat931
2024-04-09 19:14:56 +00:00
committed by GitHub
parent 0ba4e8c0ba
commit 857b8ef363
2 changed files with 2 additions and 2 deletions
@@ -64,7 +64,7 @@ class ESP32RMTLEDStripLightOutput : public light::AddressableLight {
protected:
light::ESPColorView get_view_internal(int32_t index) const override;
size_t get_buffer_size_() const { return this->num_leds_ * (3 + this->is_rgbw_); }
size_t get_buffer_size_() const { return this->num_leds_ * (this->is_rgbw_ || this->is_wrgb_ ? 4 : 3); }
uint8_t *buf_{nullptr};
uint8_t *effect_data_{nullptr};