Fix flagging power pin in ERC check
IsPowerConnection() is too restrictive a check Fixes https://gitlab.com/kicad/code/kicad/-/issues/8881
This commit is contained in:
parent
71b7816de5
commit
4da0c897bc
|
@ -486,8 +486,8 @@ int ERC_TESTER::TestPinToPin()
|
|||
// if this net needs a power driver
|
||||
if( !needsDriver ||
|
||||
( !needsDriver->IsVisible() && refPin->IsVisible() ) ||
|
||||
( ispowerNet != needsDriver->IsPowerConnection() &&
|
||||
ispowerNet == refPin->IsPowerConnection() ) )
|
||||
( ispowerNet != ( needsDriver->GetType() == ELECTRICAL_PINTYPE::PT_POWER_IN ) &&
|
||||
ispowerNet == ( refType == ELECTRICAL_PINTYPE::PT_POWER_IN ) ) )
|
||||
{
|
||||
needsDriver = refPin;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue