remove if printing check from PWM temp linked

This commit is contained in:
Lonja Selter
2019-03-28 10:59:21 +00:00
parent 2cc7e621e8
commit 2a9f49cfb8

View File

@@ -1202,12 +1202,12 @@ class EnclosurePlugin(octoprint.plugin.StartupPlugin,
pass
def write_pwm(self, gpio, pwm_value, queue_id=None):
self.logger.debug("Calling write_pwm: %s, %s ,%s", gpio, pwm_value, queue_id)
self._logger.debug("Calling write_pwm: %s, %s ,%s", gpio, pwm_value, queue_id)
try:
if queue_id is not None and self._settings.get(["debug"]) is True:
self._logger.info("Running scheduled queue id %s", queue_id)
for pwm in self.pwm_intances:
self.logger.debug("pwm: %s", pwm)
self._logger.debug("pwm: %s", pwm)
if gpio in pwm:
pwm_object = pwm[gpio]
old_pwm_value = pwm['duty_cycle'] if 'duty_cycle' in pwm else -1