From ca966fa1189298e868c486d18906adacceb7fed4 Mon Sep 17 00:00:00 2001 From: Lonja Selter Date: Thu, 28 Mar 2019 11:19:03 +0000 Subject: [PATCH] force int write pwm --- octoprint_enclosure/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: