Fix overly aggressive ERC check

It helps to only check for the pintypes I care about
This commit is contained in:
Jon Evans 2020-07-07 17:08:07 -04:00
parent fbc3ba8c04
commit 84b02e51f1
1 changed files with 4 additions and 1 deletions

View File

@ -539,7 +539,10 @@ int ERC_TESTER::TestNoConnectPins()
SCH_COMPONENT* comp = static_cast<SCH_COMPONENT*>( item );
for( SCH_PIN* pin : comp->GetSchPins( &sheet ) )
pinMap[pin->GetPosition()].emplace_back( pin );
{
if( pin->GetLibPin()->GetType() == ELECTRICAL_PINTYPE::PT_NC )
pinMap[pin->GetPosition()].emplace_back( pin );
}
}
for( auto& pair : pinMap )