diff --git a/octoprint_enclosure/__init__.py b/octoprint_enclosure/__init__.py index 8c179d8..e25d12f 100644 --- a/octoprint_enclosure/__init__.py +++ b/octoprint_enclosure/__init__.py @@ -1202,7 +1202,7 @@ class EnclosurePlugin(octoprint.plugin.StartupPlugin, pass def write_pwm(self, gpio, pwm_value, queue_id=None): - gpio =int(gpio) + pwm_value =int(pwm_value) 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: