Skip to content

Commit

Permalink
Close active_low on cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mcampbellizo committed Mar 20, 2020
1 parent 3f3b642 commit 26bcdc9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gpio.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def cleanup(pin=None, assert_exists=False):
return
state.value.close()
state.direction.close()
state.active_low.close()
if os.path.exists(gpiopath(pin)):
log.debug("Unexporting pin {0}".format(pin))
with _export_lock:
Expand Down

0 comments on commit 26bcdc9

Please sign in to comment.