Sim: Ignore the "mfg" parameter in all models

This commit is contained in:
Mikolaj Wielgus 2022-10-19 06:53:39 +02:00
parent 952f3da53f
commit 7378aaae9d
1 changed files with 4 additions and 4 deletions

View File

@ -92,14 +92,14 @@ void SIM_MODEL_NGSPICE::SetParamFromSpiceCode( const std::string& aParamName,
if( paramName == "level" || paramName == "version" ) if( paramName == "level" || paramName == "version" )
return; return;
// Also ignore "type" parameter, because Ngspice does that too. // Ignore the purely informative LTspice-specific parameters "mfg" and "type".
if( paramName == "type" ) if( paramName == "mfg" || paramName == "type" )
return; return;
if( GetDeviceType() == DEVICE_TYPE_::NPN || GetDeviceType() == DEVICE_TYPE_::PNP ) if( GetDeviceType() == DEVICE_TYPE_::NPN || GetDeviceType() == DEVICE_TYPE_::PNP )
{ {
// Ignore the purely informative LTspice-specific parameters "mfg", "icrating", "vceo". // Ignore the purely informative LTspice-specific parameters "icrating" and "vceo".
if( paramName == "mfg" || paramName == "icrating" || paramName == "vceo" ) if( paramName == "icrating" || paramName == "vceo" )
return; return;
// Ignore unused parameters. // Ignore unused parameters.