From d424c738cd1aded73fb19717e46ac10c1dadf7f2 Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Thu, 23 Mar 2023 13:06:56 +0100 Subject: [PATCH] Net Debug: don't protect Serial TX pin do not protect hardwareTX (=gpio1) when WLED_DEBUG_HOST is defined --- wled00/wled.cpp | 2 +- wled00/wled.h | 2 +- wled00/xml.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wled00/wled.cpp b/wled00/wled.cpp index bffc94bf..ab93bc5f 100644 --- a/wled00/wled.cpp +++ b/wled00/wled.cpp @@ -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 diff --git a/wled00/wled.h b/wled00/wled.h index be939489..7d579c86 100644 --- a/wled00/wled.h +++ b/wled00/wled.h @@ -8,7 +8,7 @@ */ // version code in format yymmddb (b = daily build) -#define VERSION 2303220 +#define VERSION 2303230 //uncomment this if you have a "my_config.h" file you'd like to use //#define WLED_USE_MY_CONFIG diff --git a/wled00/xml.cpp b/wled00/xml.cpp index 5d9b9a2a..e6e2d130 100644 --- a/wled00/xml.cpp +++ b/wled00/xml.cpp @@ -217,7 +217,7 @@ void appendGPIOinfo() { oappend(SET_F(",2")); // DMX hardcoded pin #endif - #ifdef WLED_DEBUG + #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 #endif