For upstream/serial and logging fixes (#28)

* posix: logging: Use `stderr` instead of `stdout` for debug logging.

* posix: serial: Restore socket `termios` settings for `stdin` and `stdout` at exit.
This commit is contained in:
Robert Quattlebaum
2016-05-13 16:29:38 -07:00
committed by Jonathan Hui
parent 1f24fa44fa
commit 4c560dc94e
3 changed files with 48 additions and 29 deletions
+5
View File
@@ -32,6 +32,7 @@
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <cli/cli.hpp>
@@ -101,6 +102,10 @@ void Serial::ReceiveTask(void)
break;
case 3: // CTRL-C
exit(1);
break;
case '\b':
case 127:
otPlatSerialSend(sEraseString, sizeof(sEraseString));