mirror of https://github.com/ArduPilot/ardupilot
Hello: example fix travis warning
missing function declaration implicit cast some style fix
This commit is contained in:
parent
a6fe6024c1
commit
eb4298ca3e
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue