diff --git a/esphome/components/esp32_rmt_led_strip/led_strip.h b/esphome/components/esp32_rmt_led_strip/led_strip.h index 40bb8a857e..f0cec9b291 100644 --- a/esphome/components/esp32_rmt_led_strip/led_strip.h +++ b/esphome/components/esp32_rmt_led_strip/led_strip.h @@ -86,7 +86,7 @@ class ESP32RMTLEDStripLightOutput : public light::AddressableLight { rmt_encoder_handle_t encoder_{nullptr}; rmt_symbol_word_t *rmt_buf_{nullptr}; rmt_symbol_word_t bit0_, bit1_, reset_; - uint32_t rmt_symbols_; + uint32_t rmt_symbols_{48}; #else rmt_item32_t *rmt_buf_{nullptr}; rmt_item32_t bit0_, bit1_, reset_; @@ -95,12 +95,12 @@ class ESP32RMTLEDStripLightOutput : public light::AddressableLight { uint8_t pin_; uint16_t num_leds_; - bool is_rgbw_; - bool is_wrgb_; - bool use_dma_; - bool use_psram_; + bool is_rgbw_{false}; + bool is_wrgb_{false}; + bool use_dma_{false}; + bool use_psram_{false}; - RGBOrder rgb_order_; + RGBOrder rgb_order_{ORDER_RGB}; uint32_t last_refresh_{0}; optional max_refresh_rate_{}; diff --git a/esphome/components/esp32_rmt_led_strip/light.py b/esphome/components/esp32_rmt_led_strip/light.py index dd01546d1c..97cac03ff4 100644 --- a/esphome/components/esp32_rmt_led_strip/light.py +++ b/esphome/components/esp32_rmt_led_strip/light.py @@ -215,8 +215,6 @@ async def to_code(config): cg.add(var.set_rmt_symbols(config[CONF_RMT_SYMBOLS])) if CONF_USE_DMA in config: cg.add(var.set_use_dma(config[CONF_USE_DMA])) - else: - cg.add(var.set_use_dma(False)) else: rmt_channel_t = cg.global_ns.enum("rmt_channel_t") cg.add(