From eb4298ca3e64c3727d4256e1859a1b31c11ba989 Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Thu, 13 Apr 2017 13:34:16 +0200 Subject: [PATCH] Hello: example fix travis warning missing function declaration implicit cast some style fix --- Tools/Hello/Hello.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Tools/Hello/Hello.cpp b/Tools/Hello/Hello.cpp index bc71c9b2ed..0f93a4cad4 100644 --- a/Tools/Hello/Hello.cpp +++ b/Tools/Hello/Hello.cpp @@ -5,17 +5,20 @@ #include +void setup(); +void loop(); + const AP_HAL::HAL& hal = AP_HAL::get_HAL(); void setup() { - hal.console->printf("hello world\n"); + hal.console->printf("hello world\n"); } void loop() { - hal.scheduler->delay(1000); - hal.console->printf("*\n"); + hal.scheduler->delay(1000); + hal.console->printf("*\n"); } AP_HAL_MAIN();