mirror of
https://github.com/thearn/Python-Arduino-Command-API.git
synced 2026-01-11 07:28:02 -05:00
Value returned over serial line should already be 0 or 1.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user