From ef48b1f5cdbab88f14ea565dfd36eb755e31cdd1 Mon Sep 17 00:00:00 2001 From: Will Tatam Date: Sat, 18 Feb 2023 13:22:43 +0000 Subject: [PATCH] Inital code on adding DMX input support --- wled00/dmx.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wled00/dmx.cpp b/wled00/dmx.cpp index 56748972..c2a8d9b6 100644 --- a/wled00/dmx.cpp +++ b/wled00/dmx.cpp @@ -82,6 +82,11 @@ void handleDMX() dmx.update(); // update the DMX bus } +#else +void handleDMX() {} +#endif + +#if defined(WLED_ENABLE_DMX) || defined(WLED_ENABLE_DMX_INPUT) void initDMX() { #ifdef ESP8266 dmx.init(512); // initialize with bus length @@ -89,9 +94,7 @@ void initDMX() { dmx.initWrite(512); // initialize with bus length #endif } - #else -void handleDMX() {} void initDMX() {} #endif