Convert inline models in Sim.Params fields to SPICE syntax.
Fixes https://gitlab.com/kicad/code/kicad/issues/14157
(cherry picked from commit 14f1f3ec79
)
This commit is contained in:
parent
bbdb5eb6e3
commit
94ec6cc362
|
@ -104,7 +104,7 @@ std::string SPICE_GENERATOR_RAW_SPICE::ItemParams() const
|
||||||
for( const SIM_MODEL::PARAM& param : GetInstanceParams() )
|
for( const SIM_MODEL::PARAM& param : GetInstanceParams() )
|
||||||
{
|
{
|
||||||
if( param.info.name == "model" )
|
if( param.info.name == "model" )
|
||||||
result.append( " " + param.value );
|
result.append( " " + SIM_VALUE::ToSpice( param.value ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in New Issue