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:
rlar 2018-03-28 17:18:18 +02:00
parent 13bb4cac77
commit d515a10bde
1 changed files with 1 additions and 1 deletions

View File

@ -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;