Apply DC voltage source exception to current sources.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/15626
(cherry picked from commit 4a59f0de43
)
This commit is contained in:
parent
33da35db04
commit
c3ee477a1b
|
@ -73,7 +73,8 @@ std::string SPICE_GENERATOR_SOURCE::ItemLine( const SPICE_ITEM& aItem ) const
|
||||||
}
|
}
|
||||||
|
|
||||||
if( m_model.GetSpiceInfo().inlineTypeString != ""
|
if( m_model.GetSpiceInfo().inlineTypeString != ""
|
||||||
&& m_model.GetType() != SIM_MODEL::TYPE::V ) // DC-only sources are already processed
|
&& m_model.GetType() != SIM_MODEL::TYPE::V // DC-only sources are already processed
|
||||||
|
&& m_model.GetType() != SIM_MODEL::TYPE::I )
|
||||||
{
|
{
|
||||||
std::string args = "";
|
std::string args = "";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue