From: Olivier Matz Date: Thu, 31 Oct 2013 18:43:24 +0000 (+0100) Subject: send "ATCN" when exiting from xbee raw mode X-Git-Url: http://git.droids-corp.org/?p=protos%2Fxbee-avr.git;a=commitdiff_plain;h=70415e123a0febc5b74b8ddd98778be116f2700b send "ATCN" when exiting from xbee raw mode --- 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);