mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
AP_Menu: Unify from print or println to printf.
This commit is contained in:
parent
0733d760f6
commit
aa3fb830af
@ -152,7 +152,7 @@ Menu::_run_command(bool prompt_on_enter)
|
|||||||
|
|
||||||
if (cmd_found==false)
|
if (cmd_found==false)
|
||||||
{
|
{
|
||||||
_port->println("Invalid command, type 'help'");
|
_port->printf("Invalid command, type 'help'\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
@ -223,7 +223,7 @@ Menu::_help(void)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
_port->println("Commands:");
|
_port->printf("Commands:\n");
|
||||||
for (i = 0; i < _entries; i++) {
|
for (i = 0; i < _entries; i++) {
|
||||||
hal.scheduler->delay(10);
|
hal.scheduler->delay(10);
|
||||||
_port->printf(" %s\n", _commands[i].command);
|
_port->printf(" %s\n", _commands[i].command);
|
||||||
|
Loading…
Reference in New Issue
Block a user