From 18eaf78c9c300c3ff30d4ab12978554e95d11093 Mon Sep 17 00:00:00 2001 From: Lonja Selter Date: Thu, 28 Mar 2019 13:21:35 +0000 Subject: [PATCH] use start instead of ChangeDutyCycle --- octoprint_enclosure/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/octoprint_enclosure/__init__.py b/octoprint_enclosure/__init__.py index 8ac0c2c..97b6244 100644 --- a/octoprint_enclosure/__init__.py +++ b/octoprint_enclosure/__init__.py @@ -1226,11 +1226,10 @@ class EnclosurePlugin(octoprint.plugin.StartupPlugin, pwm['duty_cycle'] = pwm_value self._logger.debug("Changing duty cycle: %s", pwm_value) self._logger.debug("PWM Object is: %s", pwm_object) - pwm_object.ChangeDutyCycle(pwm_value) + pwm_object.start(pwm_value) self._logger.debug( "Writing PWM on gpio: %s value %s", gpio, pwm_value) - self.update_ui() if queue_id is not None: self.stop_queue_item(queue_id)