From 0e5c74dd010868c6e89a459d44190b71166ae90e Mon Sep 17 00:00:00 2001 From: Jonathan Gutow Date: Mon, 15 May 2023 14:57:01 -0500 Subject: [PATCH] BugFix: needed to reset cycles_on and cycles_off on speed update. --- Trough/Trough_Control/trough_util.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Trough/Trough_Control/trough_util.py b/Trough/Trough_Control/trough_util.py index fe64b19..7239263 100644 --- a/Trough/Trough_Control/trough_util.py +++ b/Trough/Trough_Control/trough_util.py @@ -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