diff --git a/pioreactor/background_jobs/temperature_automation.py b/pioreactor/background_jobs/temperature_automation.py index f46b7f4d..fcc2ddd4 100644 --- a/pioreactor/background_jobs/temperature_automation.py +++ b/pioreactor/background_jobs/temperature_automation.py @@ -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