diff --git a/libraries/AP_HAL/examples/AnalogIn/AnalogIn.cpp b/libraries/AP_HAL/examples/AnalogIn/AnalogIn.cpp index f427a13e55..873a213cff 100644 --- a/libraries/AP_HAL/examples/AnalogIn/AnalogIn.cpp +++ b/libraries/AP_HAL/examples/AnalogIn/AnalogIn.cpp @@ -15,7 +15,7 @@ void loop (void) { float v = ch->voltage_average(); if (pin == 0) { - hal.console->println(); + hal.console->printf("\n"); } hal.console->printf("[%u %.3f] ", (unsigned)pin, v); diff --git a/libraries/AP_HAL/examples/Printf/Printf.cpp b/libraries/AP_HAL/examples/Printf/Printf.cpp index 645d65c754..c567f480ed 100644 --- a/libraries/AP_HAL/examples/Printf/Printf.cpp +++ b/libraries/AP_HAL/examples/Printf/Printf.cpp @@ -4,7 +4,7 @@ const AP_HAL::HAL& hal = AP_HAL::get_HAL(); void setup(void) { - hal.console->println("Starting Printf test"); + hal.console->printf("Starting Printf test\n"); } static const struct { diff --git a/libraries/AP_HAL/examples/RCInput/RCInput.cpp b/libraries/AP_HAL/examples/RCInput/RCInput.cpp index b3b0bfea2d..08a26acf0d 100644 --- a/libraries/AP_HAL/examples/RCInput/RCInput.cpp +++ b/libraries/AP_HAL/examples/RCInput/RCInput.cpp @@ -39,7 +39,7 @@ void loop(void) for (uint8_t i = 0; i < max_channels_display; i++) { hal.console->printf("%2u:%04u ", (unsigned)i+1, (unsigned)last_value[i]); } - hal.console->println(); + hal.console->printf("\n"); } } else { hal.console->printf("Channels detected: %2u\n", nchannels); diff --git a/libraries/AP_HAL/examples/RCInputToRCOutput/RCInputToRCOutput.cpp b/libraries/AP_HAL/examples/RCInputToRCOutput/RCInputToRCOutput.cpp index f6a7c7cc4d..fb9f00e340 100644 --- a/libraries/AP_HAL/examples/RCInputToRCOutput/RCInputToRCOutput.cpp +++ b/libraries/AP_HAL/examples/RCInputToRCOutput/RCInputToRCOutput.cpp @@ -46,7 +46,7 @@ void loop(void) for(uint8_t i = 0; i < max_channels; i++) { hal.console->printf("%2u:%04u ", (unsigned)i + 1, (unsigned)last_value[i]); } - hal.console->println(); + hal.console->printf("\n"); } hal.scheduler->delay(100); } diff --git a/libraries/AP_HAL/examples/RCOutput/RCOutput.cpp b/libraries/AP_HAL/examples/RCOutput/RCOutput.cpp index 392dcddfb5..6c456bac14 100644 --- a/libraries/AP_HAL/examples/RCOutput/RCOutput.cpp +++ b/libraries/AP_HAL/examples/RCOutput/RCOutput.cpp @@ -8,7 +8,7 @@ const AP_HAL::HAL& hal = AP_HAL::get_HAL(); void setup (void) { - hal.console->println("Starting AP_HAL::RCOutput test"); + hal.console->printf("Starting AP_HAL::RCOutput test\n"); for (uint8_t i=0; i<14; i++) { hal.rcout->enable_ch(i); } diff --git a/libraries/AP_HAL/examples/RCOutput2/RCOutput.cpp b/libraries/AP_HAL/examples/RCOutput2/RCOutput.cpp index a29114c4a8..75788569bb 100644 --- a/libraries/AP_HAL/examples/RCOutput2/RCOutput.cpp +++ b/libraries/AP_HAL/examples/RCOutput2/RCOutput.cpp @@ -72,7 +72,7 @@ const struct Menu::command rcoutput_menu_commands[] = { MENU(menu, "Menu: ", rcoutput_menu_commands); void setup(void) { - hal.console->println("Starting AP_HAL::RCOutput test"); + hal.console->printf("Starting AP_HAL::RCOutput test\n"); for (uint8_t i = 0; i < 14; i++) { hal.rcout->enable_ch(i);