spicelib/devices/{sw,csw}, #10/, bug fix, update CKTstate0[..CSWctrlvalue]
instead of CKTstate1[..CSWswitchstate]
which was introduced in commit:
> commit 0dae4607a0
> Date: Wed Apr 25 18:28:20 2001 +0000
>
> Added a patch to csw and sw from Jon Engelbert dealing with negative hister
This commit is contained in:
parent
13bb4cac77
commit
d515a10bde
|
|
@ -124,7 +124,7 @@ CSWload(GENmodel *inModel, CKTcircuit *ckt)
|
|||
}
|
||||
|
||||
ckt->CKTstate0[here->CSWswitchstate] = current_state;
|
||||
ckt->CKTstate1[here->CSWswitchstate] = previous_state;
|
||||
ckt->CKTstate0[here->CSWctrlvalue] = i_ctrl;
|
||||
|
||||
if (current_state > 0)
|
||||
g_now = model->CSWonConduct;
|
||||
|
|
|
|||
Loading…
Reference in New Issue