Extract dmx_input from dmx.cpp into dmx_input.cpp.

This greatly improves readability because it gets rid of most of the
ifdefs.
This commit is contained in:
Arne
2023-08-14 14:12:08 +02:00
parent a516a7b85f
commit b4bbf0a5cb
4 changed files with 133 additions and 110 deletions

View File

@@ -692,9 +692,12 @@ void WLED::setup()
ArduinoOTA.setHostname(cmDNS);
}
#endif
#if defined(WLED_ENABLE_DMX) || defined(WLED_ENABLE_DMX_INPUT)
#ifdef WLED_ENABLE_DMX
initDMX();
#endif
#ifdef WLED_ENABLE_DMX_INPUT
initDMXInput();
#endif
#ifdef WLED_ENABLE_ADALIGHT
if (Serial && (Serial.available() > 0) && (Serial.peek() == 'I')) handleImprovPacket();