From d13d9bea8b8fc470f49f1a96cdbe1a7d8071f4fc Mon Sep 17 00:00:00 2001 From: Shawn Bruce Date: Mon, 19 Apr 2021 18:51:07 -0400 Subject: [PATCH] Log pin type on cleanup --- octoprint_psucontrol/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/octoprint_psucontrol/__init__.py b/octoprint_psucontrol/__init__.py index c9553eb..ef8a03f 100644 --- a/octoprint_psucontrol/__init__.py +++ b/octoprint_psucontrol/__init__.py @@ -144,8 +144,8 @@ def get_gpio_devs(self): def cleanup_gpio(self): - for pin in self._configuredGPIOPins.values(): - self._logger.debug("Cleaning up pin {}".format(pin)) + for k, pin in self._configuredGPIOPins.items(): + self._logger.debug("Cleaning up {} pin {}".format(k, pin.name)) try: pin.close() except Exception as e: