Net Debug / Net Serial updates

Add PinManagerClass::manageDebugTXPin to handle allocating pins for WLED_DEBUG_HOST and WLED_DEBUG
This commit is contained in:
Ewoud
2023-03-23 14:21:42 +01:00
parent d424c738cd
commit 27c4d98ada
9 changed files with 1346 additions and 1327 deletions

View File

@@ -217,8 +217,12 @@ void appendGPIOinfo() {
oappend(SET_F(",2")); // DMX hardcoded pin
#endif
#if defined(WLED_DEBUG) && !defined(WLED_DEBUG_HOST) // WLEDMM don't need to protect TX if we have netDebug
oappend(SET_F(",")); oappend(itoa(hardwareTX,nS,10));// debug output (TX) pin
#ifdef WLED_DEBUG
#if defined(WLED_DEBUG_HOST)
if (!netDebugEnabled) oappend(SET_F(",")); oappend(itoa(hardwareTX,nS,10));// debug output (TX) pin
#else
oappend(SET_F(",")); oappend(itoa(hardwareTX,nS,10));// debug output (TX) pin
#endif
#endif
//Note: Using pin 3 (RX) disables Adalight / Serial JSON