From da9087ee6ff55c9d0c77cf5462574c743c4ffb5a Mon Sep 17 00:00:00 2001 From: Drzony Date: Mon, 30 Nov 2020 20:09:13 +0100 Subject: Compilation fix when using I2S on ESP32 --- src/platforms/esp/32/clockless_rmt_esp32.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/platforms/esp/32/clockless_rmt_esp32.cpp b/src/platforms/esp/32/clockless_rmt_esp32.cpp index 987f1bfc..6cbfb8aa 100644 --- a/src/platforms/esp/32/clockless_rmt_esp32.cpp +++ b/src/platforms/esp/32/clockless_rmt_esp32.cpp @@ -1,6 +1,8 @@ #ifdef ESP32 +#ifndef FASTLED_ESP32_I2S + #define FASTLED_INTERNAL #include "FastLED.h" @@ -416,4 +418,6 @@ void ESP32RMTController::convertByte(uint32_t byteval) } } -#endif +#endif // ! FASTLED_ESP32_I2S + +#endif // ESP32 -- cgit v1.2.3