Hello: example fix travis warning

missing function declaration
implicit cast
some style fix
This commit is contained in:
Pierre Kancir 2017-04-13 13:34:16 +02:00 committed by Francisco Ferreira
parent a6fe6024c1
commit eb4298ca3e

View File

@ -5,17 +5,20 @@
#include <AP_HAL/AP_HAL.h> #include <AP_HAL/AP_HAL.h>
void setup();
void loop();
const AP_HAL::HAL& hal = AP_HAL::get_HAL(); const AP_HAL::HAL& hal = AP_HAL::get_HAL();
void setup() void setup()
{ {
hal.console->printf("hello world\n"); hal.console->printf("hello world\n");
} }
void loop() void loop()
{ {
hal.scheduler->delay(1000); hal.scheduler->delay(1000);
hal.console->printf("*\n"); hal.console->printf("*\n");
} }
AP_HAL_MAIN(); AP_HAL_MAIN();