Value returned over serial line should already be 0 or 1.

This commit is contained in:
Ian Joseph Wilson
2013-05-29 16:37:55 -07:00
parent 5c4faa5658
commit 0fe7407b1d

View File

@@ -266,7 +266,7 @@ class Arduino(object):
pass
rd = self.sr.readline().replace("\r\n", "")
try:
return 1 - int(rd)
return int(rd)
except:
return 0