From 99efca2e1dd32da25454653f30a9d4d2b7e2db95 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Wed, 20 Mar 2013 21:02:45 +0100 Subject: host/proto: accept \n as command terminator --- host/proto/proto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3