Skip to content

Commit

Permalink
Fix a bug that prevents reset triggers from firing correctly when the…
Browse files Browse the repository at this point in the history
… clock is stopped (#306)
  • Loading branch information
chrisib committed Sep 23, 2023
1 parent b8bc5c5 commit 35ec4a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion software/contrib/pams.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ def stop(self):
# Turn all other channels off so we don't leave hot wires
for ch in self.channels:
if ch.clock_mod.get_value() == CLOCK_MOD_RESET:
ch.cv_out.voltage(MAX_OUTPUT_VOLTAGE * ch.amplitude / 100.0)
ch.cv_out.voltage(MAX_OUTPUT_VOLTAGE * ch.amplitude.get_value() / 100.0)
else:
ch.cv_out.voltage(0.0)
time.sleep(0.01) # time.sleep works in SECONDS not ms
Expand Down

0 comments on commit 35ec4a6

Please sign in to comment.