Skip to content
Snippets Groups Projects
Commit ae48e1b2 authored by Yun Rock Qu's avatar Yun Rock Qu Committed by Graham Schelle
Browse files

fix gpio unexport issue (#594)

parent 6e4d1725
No related branches found
No related tags found
No related merge requests found
......@@ -82,18 +82,6 @@ class _GPIO:
with open(self.path + 'direction', 'w') as f:
f.write(self.direction)
def __del__(self):
"""Delete a GPIO object.
Returns
-------
None
"""
if os.path.exists(self.path):
with open('/sys/class/gpio/unexport', 'w') as f:
f.write(str(self.index))
def read(self):
"""The method to read a value from the GPIO.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment