Merge branch 'pre-master' into bt_dev

This commit is contained in:
Brian Taylor 2022-10-24 15:47:16 -07:00
commit a25f5b4cb2
2 changed files with 12 additions and 2 deletions

View File

@ -2,14 +2,15 @@
================================================================================
-------------------------------------------------------------------------
Copyright 2011 Thomas Sailer
Copyright 2021
The ngspice team
3 - Clause BSD license
(see COPYING or https://opensource.org/licenses/BSD-3-Clause)
-------------------------------------------------------------------------
AUTHORS
19 May 2011 Thomas Sailer
12 June 2021 Holger Vogt
SUMMARY

View File

@ -18,6 +18,7 @@ AUTHORS
MODIFICATIONS
19 June 1992 Jeffrey P. Murray
22 October 2022 Holger Vogt
SUMMARY
@ -131,6 +132,14 @@ void cm_potentiometer (ARGS)
/* Retrieve frequently used parameters... */
position = PARAM(position);
/* guard against 0 or 1
FIXME: checking the parameter limits is not yet implemented */
if (position <= 0)
position = 1e-9;
else if (position >= 1)
position = 0.999999999;
resistance = PARAM(r);
/* Retrieve input voltages... */