diff --git a/octoprint_enclosure/__init__.py b/octoprint_enclosure/__init__.py index e25d12f..1f94804 100644 --- a/octoprint_enclosure/__init__.py +++ b/octoprint_enclosure/__init__.py @@ -1214,6 +1214,8 @@ class EnclosurePlugin(octoprint.plugin.StartupPlugin, old_pwm_value = pwm['duty_cycle'] if 'duty_cycle' in pwm else -1 if not self.to_int(old_pwm_value) == self.to_int(pwm_value): 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) self._logger.debug( "Writing PWM on gpio: %s value %s", gpio, pwm_value)