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
committed by Will Tatam
parent a0ca243955
commit f06a1e8b49
4 changed files with 137 additions and 108 deletions

View File

@@ -534,6 +534,9 @@ void WLED::setup()
#ifdef WLED_ENABLE_DMX
initDMX();
#endif
#ifdef WLED_ENABLE_DMX_INPUT
initDMXInput();
#endif
#ifdef WLED_ENABLE_ADALIGHT
if (serialCanRX && Serial.available() > 0 && Serial.peek() == 'I') handleImprovPacket();