remove if printing check from PWM temp linked
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user