From bb6f84d18c85703ddfd9aab2e9731782295c712a Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Fri, 25 Aug 2023 17:26:40 +0200 Subject: [PATCH] pin summary: don't report "fake" conflicts with same owner sometimes happens in debug mode. GPIO | Assigned to | Info --------|-----------------------|------------ i/o 1 debug output !! Conflict with debug output !! Serial TX --- wled00/pin_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wled00/pin_manager.cpp b/wled00/pin_manager.cpp index dd8eb16e..d7c7a21c 100644 --- a/wled00/pin_manager.cpp +++ b/wled00/pin_manager.cpp @@ -270,7 +270,7 @@ String PinManagerClass::getPinConflicts(int gpio) { if ((gpio == 0xFF) || (gpio < 0)) return(F("")); // explicitly allow -1 as a no-op if (!isPinOk(gpio, false)) return(F("")); // invalid GPIO - if (ownerConflict[gpio] == PinOwner::None) { + if ((ownerConflict[gpio] == PinOwner::None) || (ownerTag[gpio] == ownerConflict[gpio])) { // no conflict, or "fake" conflict with current owner return(F("")); // no conflict fot this GPIO } else { // found previous conflic! return String("!! Conflict with ") + getOwnerText(ownerConflict[gpio]) + String(" !!");