eeschema: fixed recognizing SPICE sim directive

This commit is contained in:
Sylwester Kocjan 2019-10-19 21:33:43 +02:00 committed by Seth Hillbrand
parent 8f1c1cf298
commit 1c01cc001d
1 changed files with 3 additions and 3 deletions

View File

@ -130,9 +130,9 @@ SIM_TYPE NETLIST_EXPORTER_PSPICE_SIM::GetSimType()
SIM_TYPE NETLIST_EXPORTER_PSPICE_SIM::CommandToSimType( const wxString& aCmd ) SIM_TYPE NETLIST_EXPORTER_PSPICE_SIM::CommandToSimType( const wxString& aCmd )
{ {
const std::map<wxString, SIM_TYPE> simCmds = { const std::map<wxString, SIM_TYPE> simCmds = {
{ ".ac", ST_AC }, { ".dc", ST_DC }, { ".disto", ST_DISTORTION }, { ".noise", ST_NOISE }, { ".ac ", ST_AC }, { ".dc ", ST_DC }, { ".disto ", ST_DISTORTION }, { ".noise ", ST_NOISE },
{ ".op", ST_OP }, { ".pz", ST_POLE_ZERO }, { ".sens", ST_SENSITIVITY }, { ".tf", ST_TRANS_FUNC }, { ".op ", ST_OP }, { ".pz ", ST_POLE_ZERO }, { ".sens ", ST_SENSITIVITY }, { ".tf ", ST_TRANS_FUNC },
{ ".tran", ST_TRANSIENT } { ".tran ", ST_TRANSIENT }
}; };
wxString lcaseCmd = aCmd.Lower(); wxString lcaseCmd = aCmd.Lower();