From c600c4fe722c915baf77321e226ed36d7ab7177e Mon Sep 17 00:00:00 2001 From: Will Tatam Date: Sat, 18 Feb 2023 14:26:40 +0000 Subject: [PATCH] Only put into DMX_SEND_ONLY if we arent trying to do input --- wled00/src/dependencies/dmx/SparkFunDMX.h | 2 +- wled00/wled.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/wled00/src/dependencies/dmx/SparkFunDMX.h b/wled00/src/dependencies/dmx/SparkFunDMX.h index 73861153..3a24f442 100644 --- a/wled00/src/dependencies/dmx/SparkFunDMX.h +++ b/wled00/src/dependencies/dmx/SparkFunDMX.h @@ -19,7 +19,7 @@ Distributed as-is; no warranty is given. #ifndef SparkFunDMX_h #define SparkFunDMX_h -#define DMX_SEND_ONLY // this disables DMX sending features, and saves us two GPIO pins +//#define DMX_SEND_ONLY // this disables DMX sending features, and saves us two GPIO pins // ---- Methods ---- diff --git a/wled00/wled.h b/wled00/wled.h index 194eb063..f61f9015 100644 --- a/wled00/wled.h +++ b/wled00/wled.h @@ -128,6 +128,9 @@ #ifdef ESP8266 #include "src/dependencies/dmx/ESPDMX.h" #else //ESP32 + #ifndef WLED_ENABLE_DMX_INPUT + #define DMX_SEND_ONLY + #endif #include "src/dependencies/dmx/SparkFunDMX.h" #endif #endif