Enable tuner for RLC components only
This commit is contained in:
@@ -184,6 +184,12 @@ void SIM_PLOT_FRAME::AddTuner( SCH_COMPONENT* aComponent )
|
||||
if( !plotPanel )
|
||||
return;
|
||||
|
||||
// For now limit the tuner tool to RLC components
|
||||
char primitiveType = NETLIST_EXPORTER_PSPICE::GetSpiceField( SPICE_PRIMITIVE, aComponent, 0 )[0];
|
||||
|
||||
if( primitiveType != SP_RESISTOR && primitiveType != SP_CAPACITOR && primitiveType != SP_INDUCTOR )
|
||||
return;
|
||||
|
||||
const wxString& componentName = aComponent->GetField( REFERENCE )->GetText();
|
||||
auto& tunerList = m_tuners[plotPanel];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user