diff --git a/Arduino/McLighting/McLighting.ino b/Arduino/McLighting/McLighting.ino index aadf19d..17da1de 100644 --- a/Arduino/McLighting/McLighting.ino +++ b/Arduino/McLighting/McLighting.ino @@ -30,15 +30,6 @@ #include //https://github.com/bblanchon/ArduinoJson -#if defined(ENABLE_E131) -// *************************************************************************** -// Load libraries for E131 support -// *************************************************************************** - #include //https://github.com/me-no-dev/ESPAsyncUDP - #include //https://github.com/forkineye/ESPAsyncE131 - ESPAsyncE131* e131 = NULL; //(END_UNIVERSE - START_UNIVERSE + 1); -#endif - // MQTT #if defined(ENABLE_MQTT) #if ENABLE_MQTT == 0 @@ -68,6 +59,15 @@ #endif #endif +#if defined(ENABLE_E131) +// *************************************************************************** +// Load libraries for E131 support +// *************************************************************************** + #include //https://github.com/me-no-dev/ESPAsyncUDP + #include //https://github.com/forkineye/ESPAsyncE131 + ESPAsyncE131* e131 = NULL; //(END_UNIVERSE - START_UNIVERSE + 1); +#endif + #if defined(ENABLE_REMOTE) // *************************************************************************** // Load libraries for IR remote support