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
1 changed files with 6 additions and 3 deletions

View File

@ -5,17 +5,20 @@
#include <AP_HAL/AP_HAL.h>
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();