From be7581b377e1c226002eb22b5285b04b5beaa2f5 Mon Sep 17 00:00:00 2001 From: Norbert Richter Date: Thu, 17 Nov 2022 11:13:40 +0100 Subject: [PATCH] Fix linker error using undef USE_WS2812 for ESP32 --- tasmota/tasmota_xdrv_driver/xdrv_04_light_artnet.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_04_light_artnet.ino b/tasmota/tasmota_xdrv_driver/xdrv_04_light_artnet.ino index c2620fd9d..4dd37548b 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_04_light_artnet.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_04_light_artnet.ino @@ -21,6 +21,10 @@ #ifdef USE_LIGHT #ifdef USE_LIGHT_ARTNET +#ifndef USE_WS2812 +#define USE_WS2812 // needed since USE_LIGHT_ARTNET is enabled for ESP32 by default +#endif + #ifndef WS2812_ARTNET_UDP_BUFFER_SIZE #define WS2812_ARTNET_UDP_BUFFER_SIZE 140 // Max 30 columns with 4 bytes per pixel #endif