mirror of https://github.com/ArduPilot/ardupilot
AP_Menu: copy with newline from console
helps debugging on HAL_Linux
This commit is contained in:
parent
bbac3265b2
commit
2819dd99fa
|
@ -61,7 +61,7 @@ Menu::run(void)
|
|||
if (-1 == c)
|
||||
continue;
|
||||
// carriage return -> process command
|
||||
if ('\r' == c) {
|
||||
if ('\r' == c || '\n' == c) {
|
||||
_inbuf[len] = '\0';
|
||||
_port->write('\r');
|
||||
_port->write('\n');
|
||||
|
|
Loading…
Reference in New Issue