summaryrefslogtreecommitdiff
path: root/host/proto
diff options
context:
space:
mode:
authorNicolas Schodet2013-03-20 21:02:45 +0100
committerNicolas Schodet2013-03-20 21:02:45 +0100
commit99efca2e1dd32da25454653f30a9d4d2b7e2db95 (patch)
tree1f98a0daede3330b3d4a34a6f75e2db5b7bf2ef3 /host/proto
parent34862e3fef6ce376be5476b30dc97cbe92702077 (diff)
host/proto: accept \n as command terminator
Diffstat (limited to 'host/proto')
-rw-r--r--host/proto/proto.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/proto/proto.py b/host/proto/proto.py
index 8856a584..35930720 100644
--- a/host/proto/proto.py
+++ b/host/proto/proto.py
@@ -117,7 +117,7 @@ class Proto:
else:
self.recv_error ()
elif self.state == CMD:
- if c == '\r':
+ if c == '\r' or c == '\n':
f = Frame (self.recv_command)
f.args = binascii.unhexlify (self.recv_args)
yield f