From 403b6e32e3fbfb1201e6680177b6332c84884ce2 Mon Sep 17 00:00:00 2001 From: Vegetto Date: Tue, 6 Apr 2021 14:31:38 +0200 Subject: [PATCH] fixes #858 - esphome crashes with neolightbus and RMT (#1667) Co-authored-by: Otto Winter --- esphome/components/neopixelbus/neopixelbus_light.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/esphome/components/neopixelbus/neopixelbus_light.h b/esphome/components/neopixelbus/neopixelbus_light.h index 46601d8345..2f279e1c9b 100644 --- a/esphome/components/neopixelbus/neopixelbus_light.h +++ b/esphome/components/neopixelbus/neopixelbus_light.h @@ -68,7 +68,8 @@ class NeoPixelBusLightOutputBase : public light::AddressableLight { void add_leds(uint16_t count_pixels) { this->add_leds(new NeoPixelBus(count_pixels)); } void add_leds(NeoPixelBus *controller) { this->controller_ = controller; - this->controller_->Begin(); + // controller gets initialised in setup() - avoid calling twice (crashes with RMT) + // this->controller_->Begin(); } // ========== INTERNAL METHODS ==========