From aeb3f2b0180f4d87db8d7c6043701d1fa2de0c05 Mon Sep 17 00:00:00 2001 From: cschwinne Date: Sun, 17 Jan 2021 00:34:34 +0100 Subject: [PATCH] Fix ESP32 --- wled00/bus_manager.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wled00/bus_manager.h b/wled00/bus_manager.h index f61143c93..94371776d 100644 --- a/wled00/bus_manager.h +++ b/wled00/bus_manager.h @@ -8,6 +8,7 @@ #include "const.h" #include "pin_manager.h" #include "bus_wrapper.h" +#include //parent class of BusDigital and BusPwm class Bus { @@ -97,7 +98,9 @@ class BusDigital : public Bus { void setBrightness(uint8_t b) { //Fix for turning off onboard LED breaking bus + #ifdef LED_BUILTIN if (_bri == 0 && b > 0 && (_pins[0] == LED_BUILTIN || _pins[1] == LED_BUILTIN)) PolyBus::begin(_busPtr, _iType); + #endif _bri = b; PolyBus::setBrightness(_busPtr, _iType, b); }