From 3ce2ca488a8b3e7c95dd619d0c75d30267811450 Mon Sep 17 00:00:00 2001 From: murata Date: Sat, 21 Jan 2017 13:58:05 +0900 Subject: [PATCH] AP_Notify: Unify from print or println to printf. --- .../AP_Notify/examples/AP_Notify_test/AP_Notify_test.cpp | 2 +- .../examples/ToshibaLED_test/ToshibaLED_test.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libraries/AP_Notify/examples/AP_Notify_test/AP_Notify_test.cpp b/libraries/AP_Notify/examples/AP_Notify_test/AP_Notify_test.cpp index 5ca75af36d..6aad2c72c9 100644 --- a/libraries/AP_Notify/examples/AP_Notify_test/AP_Notify_test.cpp +++ b/libraries/AP_Notify/examples/AP_Notify_test/AP_Notify_test.cpp @@ -14,7 +14,7 @@ AP_BoardLED board_led; void setup() { - hal.console->println("AP_Notify library test"); + hal.console->printf("AP_Notify library test\n"); // initialise the board leds board_led.init(); diff --git a/libraries/AP_Notify/examples/ToshibaLED_test/ToshibaLED_test.cpp b/libraries/AP_Notify/examples/ToshibaLED_test/ToshibaLED_test.cpp index 8f7ce79d6c..31fec8bd48 100644 --- a/libraries/AP_Notify/examples/ToshibaLED_test/ToshibaLED_test.cpp +++ b/libraries/AP_Notify/examples/ToshibaLED_test/ToshibaLED_test.cpp @@ -9,14 +9,14 @@ static ToshibaLED_I2C toshiba_led; void setup(void) { // display welcome message - hal.console->print("Toshiba LED test ver 0.1\n"); + hal.console->printf("Toshiba LED test ver 0.1\n"); // initialise LED toshiba_led.init(); // check if healthy if (!toshiba_led.healthy()) { - hal.console->print("Failed to initialise Toshiba LED\n"); + hal.console->printf("Failed to initialise Toshiba LED\n"); } // turn on initialising notification @@ -30,11 +30,11 @@ void setup(void) void loop(void) { // blink test - //hal.console->print("Blink test\n"); + //hal.console->printf("Blink test\n"); //blink(); /* // full spectrum test - hal.console->print("Spectrum test\n"); + hal.console->printf("Spectrum test\n"); full_spectrum(); */