Add ERC check in component editor for conflicting multi-unit pins
Fixes: lp:1680638 * https://bugs.launchpad.net/kicad/+bug/1680638
This commit is contained in:
parent
0a81782b5d
commit
2cc5c6fd45
|
@ -722,8 +722,7 @@ void LIB_EDIT_FRAME::OnCheckComponent( wxCommandEvent& event )
|
||||||
LIB_PIN* pin = pinList[ii - 1];
|
LIB_PIN* pin = pinList[ii - 1];
|
||||||
|
|
||||||
if( pin->GetNumber() != curr_pin->GetNumber()
|
if( pin->GetNumber() != curr_pin->GetNumber()
|
||||||
|| pin->GetConvert() != curr_pin->GetConvert()
|
|| pin->GetConvert() != curr_pin->GetConvert() )
|
||||||
|| pin->GetUnit() != curr_pin->GetUnit() )
|
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
dup_error++;
|
dup_error++;
|
||||||
|
@ -746,7 +745,9 @@ void LIB_EDIT_FRAME::OnCheckComponent( wxCommandEvent& event )
|
||||||
|
|
||||||
if( part->GetUnitCount() > 1 )
|
if( part->GetUnitCount() > 1 )
|
||||||
{
|
{
|
||||||
msg += wxString::Format( _( " in symbol %c" ), 'A' + curr_pin->GetUnit() - 1 );
|
msg += wxString::Format( _( " in units %c and %c" ),
|
||||||
|
'A' + curr_pin->GetUnit() - 1,
|
||||||
|
'A' + pin->GetUnit() - 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( m_showDeMorgan )
|
if( m_showDeMorgan )
|
||||||
|
|
Loading…
Reference in New Issue