Skip to content

Commit

Permalink
Merge pull request #82 from marcin-golebiowski/development
Browse files Browse the repository at this point in the history
Bugfix for a mosfet model reader
  • Loading branch information
marcin-golebiowski authored Nov 28, 2018
2 parents 5423814 + 89f71dd commit 5934324
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public MosfetModelGenerator()
Levels.Add(1, (string name, string type, string version) =>
{
var m = new Mosfet1Model(name);
switch (type)
switch (type.ToLower())
{
case "nmos": m.SetParameter("nmos", true); break;
case "pmos": m.SetParameter("pmos", true); break;
Expand All @@ -29,7 +29,7 @@ public MosfetModelGenerator()
Levels.Add(2, (string name, string type, string version) =>
{
var m = new Mosfet2Model(name);
switch (type)
switch (type.ToLower())
{
case "nmos": m.SetParameter("nmos", true); break;
case "pmos": m.SetParameter("pmos", true); break;
Expand All @@ -41,7 +41,7 @@ public MosfetModelGenerator()
Levels.Add(3, (string name, string type, string version) =>
{
var m = new Mosfet3Model(name);
switch (type)
switch (type.ToLower())
{
case "nmos": m.SetParameter("nmos", true); break;
case "pmos": m.SetParameter("pmos", true); break;
Expand Down

0 comments on commit 5934324

Please sign in to comment.