From 226dc9de7893dcb620184b053138969ace63b298 Mon Sep 17 00:00:00 2001 From: Fabien Corona <f.corona@laposte.net> Date: Tue, 22 Nov 2022 14:21:18 +0000 Subject: [PATCH] Ibis: Don't create unnecessary B source --- eeschema/sim/kibis/kibis.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eeschema/sim/kibis/kibis.cpp b/eeschema/sim/kibis/kibis.cpp index 915f1fe630..76dc2cc8c0 100644 --- a/eeschema/sim/kibis/kibis.cpp +++ b/eeschema/sim/kibis/kibis.cpp @@ -434,7 +434,8 @@ std::string KIBIS_MODEL::SpiceDie( KIBIS_PARAMETER& aParam, int aIndex ) result += "BKU POWER " + DIE + " i=( -i(VmeasPU) * v(KU) )\n"; } - result += "BDIEBUFF " + DIEBUFF + " GND v=v(" + DIE + ")\n"; + if ( HasPullup() || HasPulldown() ) + result += "BDIEBUFF " + DIEBUFF + " GND v=v(" + DIE + ")\n"; return result; }