Skip to content

Commit

Permalink
Remove reference to 'drive' file, fixes vitiral#2
Browse files Browse the repository at this point in the history
  • Loading branch information
Olly Hicks committed Oct 1, 2015
1 parent 3f03508 commit 68ffa0d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions gpio.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ def wrapped(pin, *args, **kwargs):
_open[pin] = {
'value': open(pjoin(ppath, 'value'), FMODE),
'direction': open(pjoin(ppath, 'direction'), FMODE),
# 'drive': open(pjoin(ppath, 'drive'), FMODE),
}
return function(pin, *args, **kwargs)
return wrapped
Expand All @@ -75,7 +74,6 @@ def cleanup(pin):
files = _open[pin]
files['value'].close()
files['direction'].close()
files['drive'].close()
if os.path.exists(gpiopath(pin)):
log.debug("Unexporting pin {0}".format(pin))
with _export_lock:
Expand Down

0 comments on commit 68ffa0d

Please sign in to comment.