shell; start newtmgr message sequence with '\n' to flush the parsing
on the other side.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/commit/8fd21e96
Tree: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/tree/8fd21e96
Diff: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/diff/8fd21e96

Branch: refs/heads/develop
Commit: 8fd21e960adde47db7cfa48d7fb77b146efbdc70
Parents: 7d00bea
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Wed Oct 5 15:06:41 2016 -0700
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Wed Oct 5 15:06:41 2016 -0700

----------------------------------------------------------------------
 sys/shell/src/shell.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-core/blob/8fd21e96/sys/shell/src/shell.c
----------------------------------------------------------------------
diff --git a/sys/shell/src/shell.c b/sys/shell/src/shell.c
index 3606e54..e2844ab 100644
--- a/sys/shell/src/shell.c
+++ b/sys/shell/src/shell.c
@@ -280,7 +280,7 @@ shell_nlip_mtx(struct os_mbuf *m)
 #define SHELL_NLIP_MTX_BUF_SIZE (12)
     uint8_t readbuf[SHELL_NLIP_MTX_BUF_SIZE];
     char encodebuf[BASE64_ENCODE_SIZE(SHELL_NLIP_MTX_BUF_SIZE)];
-    char pkt_seq[2] = { SHELL_NLIP_PKT_START1, SHELL_NLIP_PKT_START2 };
+    char pkt_seq[3] = { '\n', SHELL_NLIP_PKT_START1, SHELL_NLIP_PKT_START2 };
     char esc_seq[2] = { SHELL_NLIP_DATA_START1, SHELL_NLIP_DATA_START2 };
     uint16_t totlen;
     uint16_t dlen;

Reply via email to