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)
|
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');
|
||||||
|
|
Loading…
Reference in New Issue