From b4a75cd1d5a9f04214d6b42cd699fd018caf48f1 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Wed, 1 Feb 2023 12:29:13 +0000 Subject: [PATCH] Write out a diode .model for built-in diodes. --- eeschema/sim/sim_model_ngspice.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/eeschema/sim/sim_model_ngspice.h b/eeschema/sim/sim_model_ngspice.h index d6b21521d5..4998350270 100644 --- a/eeschema/sim/sim_model_ngspice.h +++ b/eeschema/sim/sim_model_ngspice.h @@ -109,7 +109,10 @@ protected: int doFindParam( const std::string& aParamName ) const override; private: - bool requiresSpiceModelLine() const override { return false; } + bool requiresSpiceModelLine() const override + { + return getModelType() == MODEL_TYPE::DIODE; + } bool canSilentlyIgnoreParam( const std::string& aParamName );