Skip to content
Snippets Groups Projects
Verified Commit 62730322 authored by Alexander Wellbrock's avatar Alexander Wellbrock
Browse files

Pass the cleanup

In theory everything should cleanup itself on exit. This is a builtin
feature of libgpiod.
parent 10362f2d
Branches
Tags
No related merge requests found
......@@ -88,8 +88,7 @@ class GPIO(GenericGPIO):
return self.pins[offset].get_value()
def cleanup(self):
self.loop.stop()
self.io.chip_deleter(self.chip)
pass
async def _add_event_detect(self, pin, callback):
while True:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment