Skip to content

Commit

Permalink
BugFix: needed to reset cycles_on and cycles_off on speed update.
Browse files Browse the repository at this point in the history
  • Loading branch information
gutow committed May 15, 2023
1 parent dcc7828 commit 0e5c74d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Trough/Trough_Control/trough_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -826,6 +826,8 @@ def calcDAC_V(speed, direction, maxclose, minclose, maxopen, minopen):
direction = 0
elif cmd[0] == 'Speed':
# set the speed
cycles_on = 1
cycles_off = 0
requested_speed = cmd[1]
if requested_speed > 1:
requested_speed = 1
Expand Down

0 comments on commit 0e5c74d

Please sign in to comment.