From 70415e123a0febc5b74b8ddd98778be116f2700b Mon Sep 17 00:00:00 2001 From: Olivier Matz Date: Thu, 31 Oct 2013 19:43:24 +0100 Subject: [PATCH] send "ATCN" when exiting from xbee raw mode --- main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.c b/main.c index 6d1710f..0e52717 100644 --- a/main.c +++ b/main.c @@ -552,6 +552,11 @@ void xbee_mainloop(void) /* from cmdline to xbee */ c = cmdline_dev_recv(NULL); if (c == 4) { /* CTRL-d */ + xbee_dev_send('A', NULL); + xbee_dev_send('T', NULL); + xbee_dev_send('C', NULL); + xbee_dev_send('N', NULL); + xbee_dev_send('\n', NULL); xbee_raw = 0; rdline_newline(&xbeeboard.rdl, xbeeboard.prompt); -- 2.39.5