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
This commit is contained in:
Frank
2023-08-25 17:26:40 +02:00
parent 2b34b30314
commit bb6f84d18c

View File

@@ -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(" !!");