Skip to content

Commit

Permalink
reuse clients elsewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Oct 27, 2024
1 parent 64d8a38 commit e101a9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pioreactor/background_jobs/temperature_automation.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def setup_pwm(self) -> PWM:
# impact (mainly: current sink), over the second. Ex: imagine freq=1hz, dc=40%, and the pump needs to run for
# 0.3s. The influence of when the heat is one on the pump can be significant in a power-constrained system.
pin = hardware.PWM_TO_PIN[hardware.HEATER_PWM_TO_PIN]
pwm = PWM(pin, hertz, unit=self.unit, experiment=self.experiment)
pwm = PWM(pin, hertz, unit=self.unit, experiment=self.experiment, pubsub_client=self.pub_client)
pwm.start(0)
return pwm

Expand Down

0 comments on commit e101a9f

Please sign in to comment.