AP_Menu: copy with newline from console

helps debugging on HAL_Linux
This commit is contained in:
Andrew Tridgell 2013-10-01 13:00:48 +10:00
parent bbac3265b2
commit 2819dd99fa
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ Menu::run(void)
if (-1 == c) if (-1 == c)
continue; continue;
// carriage return -> process command // carriage return -> process command
if ('\r' == c) { if ('\r' == c || '\n' == c) {
_inbuf[len] = '\0'; _inbuf[len] = '\0';
_port->write('\r'); _port->write('\r');
_port->write('\n'); _port->write('\n');