Restore ERC checks that were accidentally removed
This commit is contained in:
parent
babdc9fd7b
commit
05ed906aea
|
@ -547,6 +547,8 @@ void DIALOG_ERC::TestErc( REPORTER& aReporter )
|
|||
objectsConnectedList->ResetConnectionsType();
|
||||
|
||||
unsigned lastItemIdx = 0;
|
||||
unsigned nextItemIdx = 0;
|
||||
int MinConn = NOC;
|
||||
|
||||
/* Check that a pin appears in only one net. This check is necessary
|
||||
* because multi-unit components that have shared pins can be wired to
|
||||
|
@ -573,6 +575,13 @@ void DIALOG_ERC::TestErc( REPORTER& aReporter )
|
|||
|
||||
wxASSERT_MSG( lastNet <= net, wxT( "Netlist not correctly ordered" ) );
|
||||
|
||||
if( lastNet != net )
|
||||
{
|
||||
// New net found:
|
||||
MinConn = NOC;
|
||||
nextItemIdx = itemIdx;
|
||||
}
|
||||
|
||||
switch( item->m_Type )
|
||||
{
|
||||
// These items do not create erc problems
|
||||
|
@ -615,9 +624,8 @@ void DIALOG_ERC::TestErc( REPORTER& aReporter )
|
|||
}
|
||||
}
|
||||
|
||||
// TODO(JE) Remove this if new system is finished
|
||||
// Look for ERC problems between pins:
|
||||
//TestOthersItems( objectsConnectedList.get(), itemIdx, nextItemIdx, &MinConn );
|
||||
TestOthersItems( objectsConnectedList.get(), itemIdx, nextItemIdx, &MinConn );
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue