Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Commits on Apr 25, 2012
@jn0 jn0 Initial line #109: return prevents file closing. 5ec2739
Commits on May 07, 2012
@mrichardson23 Merge pull request #12 from jn0/patch-1
Initial line #109: return prevents file closing.
a875505
Showing with 2 additions and 1 deletion.
  1. +2 −1 mrbbio.py
View
3 mrbbio.py
@@ -106,8 +106,9 @@ def analogRead(pin):
if pin in analogPinDef:
fileName = "/sys/devices/platform/tsc/" + (analogPinDef[pin])
fw = file(fileName, "r")
- return fw.read()
+ data = fw.read()
fw.close()
+ return data
else:
print "analogRead error: Pin " + pin + " is not defined as an analog in pin in the pin definition."
return -1;

No commit comments for this range

Something went wrong with that request. Please try again.