Rename WLED_ENABLE_DMX to WLED_ENABLE_DMX_OUTPUT

This commit is contained in:
Arne
2023-08-23 14:50:22 +02:00
committed by Will Tatam
parent 84eb6fd460
commit 7f9cc67518
11 changed files with 32 additions and 24 deletions

View File

@@ -64,7 +64,7 @@ void WLED::loop()
handleImprovWifiScan();
handleNotifications();
handleTransitions();
#ifdef WLED_ENABLE_DMX
#ifdef WLED_ENABLE_DMX_OUTPUT
handleDMX();
#endif
#ifdef WLED_ENABLE_DMX_INPUT
@@ -434,7 +434,7 @@ void WLED::setup()
#if defined(WLED_DEBUG) && !defined(WLED_DEBUG_HOST)
PinManager::allocatePin(hardwareTX, true, PinOwner::DebugOut); // TX (GPIO1 on ESP32) reserved for debug output
#endif
#ifdef WLED_ENABLE_DMX //reserve GPIO2 as hardcoded DMX pin
#ifdef WLED_ENABLE_DMX_OUTPUT //reserve GPIO2 as hardcoded DMX pin
PinManager::allocatePin(2, true, PinOwner::DMX);
#endif
@@ -537,7 +537,7 @@ void WLED::setup()
ArduinoOTA.setHostname(cmDNS);
}
#endif
#ifdef WLED_ENABLE_DMX
#ifdef WLED_ENABLE_DMX_OUTPUT
initDMX();
#endif
#ifdef WLED_ENABLE_DMX_INPUT