Skip to content

Commit

Permalink
Log pin type on cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kantlivelong committed Apr 19, 2021
1 parent 6c221ae commit d13d9be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions octoprint_psucontrol/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d13d9be

Please sign in to comment.