From aa3fb830af4c5669ef0c256578c4633a5f0569da Mon Sep 17 00:00:00 2001 From: murata Date: Sat, 21 Jan 2017 13:56:01 +0900 Subject: [PATCH] AP_Menu: Unify from print or println to printf. --- libraries/AP_Menu/AP_Menu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Menu/AP_Menu.cpp b/libraries/AP_Menu/AP_Menu.cpp index 5ec969b77b..61b20caf50 100644 --- a/libraries/AP_Menu/AP_Menu.cpp +++ b/libraries/AP_Menu/AP_Menu.cpp @@ -152,7 +152,7 @@ Menu::_run_command(bool prompt_on_enter) if (cmd_found==false) { - _port->println("Invalid command, type 'help'"); + _port->printf("Invalid command, type 'help'\n"); } return false; @@ -223,7 +223,7 @@ Menu::_help(void) { int i; - _port->println("Commands:"); + _port->printf("Commands:\n"); for (i = 0; i < _entries; i++) { hal.scheduler->delay(10); _port->printf(" %s\n", _commands[i].command);