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 this net needs a power driver
|
||||||
if( !needsDriver ||
|
if( !needsDriver ||
|
||||||
( !needsDriver->IsVisible() && refPin->IsVisible() ) ||
|
( !needsDriver->IsVisible() && refPin->IsVisible() ) ||
|
||||||
( ispowerNet != needsDriver->IsPowerConnection() &&
|
( ispowerNet != ( needsDriver->GetType() == ELECTRICAL_PINTYPE::PT_POWER_IN ) &&
|
||||||
ispowerNet == refPin->IsPowerConnection() ) )
|
ispowerNet == ( refType == ELECTRICAL_PINTYPE::PT_POWER_IN ) ) )
|
||||||
{
|
{
|
||||||
needsDriver = refPin;
|
needsDriver = refPin;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue