Net Debug: don't protect Serial TX pin

do not protect hardwareTX (=gpio1) when WLED_DEBUG_HOST is defined
This commit is contained in:
Frank
2023-03-23 13:06:56 +01:00
parent 8509205c19
commit d424c738cd
3 changed files with 3 additions and 3 deletions

View File

@@ -428,7 +428,7 @@ void WLED::setup()
//DEBUG_PRINTLN(heapPreAlloc - ESP.getFreeHeap());
USER_FLUSH(); // WLEDMM flush buffer now, before anything time-critial is started.
#ifdef WLED_DEBUG
#if defined(WLED_DEBUG) && !defined(WLED_DEBUG_HOST) // WLEDMM don't need to protect TX if we have netDebug
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