Skip to content

Commit

Permalink
Added preset0Active assignment
Browse files Browse the repository at this point in the history
When RefreshOutputParams() is called and updates Output.Preset,
preset0Active should be updated accordingly.
  • Loading branch information
jjcarrier committed Dec 21, 2024
1 parent 0427dad commit 0d8388a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libdp100/PowerSupply.cs
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,7 @@ public bool RefreshOutputParams()
Output.Setpoint.OCP = ocp;

outputParamsValid = true;
preset0Active = Output.Preset == 0;
}

return result;
Expand Down

0 comments on commit 0d8388a

Please sign in to comment.