From e808f7655ca93569623de030e44f36ef15c4e7ec Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Sat, 10 Dec 2022 18:20:00 +0100 Subject: [PATCH] fix CI build make sure SparkFunDMX driver is not compiled on -S2 and -C3 --- wled00/src/dependencies/dmx/SparkFunDMX.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wled00/src/dependencies/dmx/SparkFunDMX.cpp b/wled00/src/dependencies/dmx/SparkFunDMX.cpp index 33bbc9ae9..61b1d7ef9 100644 --- a/wled00/src/dependencies/dmx/SparkFunDMX.cpp +++ b/wled00/src/dependencies/dmx/SparkFunDMX.cpp @@ -14,7 +14,7 @@ Distributed as-is; no warranty is given. ******************************************************************************/ /* ----- LIBRARIES ----- */ -#ifdef ARDUINO_ARCH_ESP32 +#if defined(ARDUINO_ARCH_ESP32) && !defined(CONFIG_IDF_TARGET_ESP32C3) && !defined(CONFIG_IDF_TARGET_ESP32S2) #include @@ -41,7 +41,7 @@ static int currentChannel = 0; // Some new MCUs (-S2, -C3) don't have HardwareSerial(2) #if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 2, 0) #if SOC_UART_NUM < 3 - #error DMX output is not possible on your MCU, as it doesn't have HardwareSerial(2) + #error DMX output is not possible on your MCU, as it does not have HardwareSerial(2) #endif #endif