Skip to content

Commit

Permalink
Corrected error in setpoint handling
Browse files Browse the repository at this point in the history
  • Loading branch information
robertjensen committed Mar 20, 2018
1 parent 4282d4a commit fc27a5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions PyExpLabSys/drivers/bronkhorst.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ def read_flow(self):

def set_flow(self, setpoint):
""" Set the desired setpoint, which could be a pressure """
setpoint = float(setpoint)
if setpoint > 0:
setpoint = (1.0 * setpoint / self.max_setting) * 32000
setpoint = hex(int(setpoint))
Expand Down

0 comments on commit fc27a5f

Please sign in to comment.