Browse Source

Hello: example fix travis warning

missing function declaration
implicit cast
some style fix
mission-4.1.18
Pierre Kancir 8 years ago committed by Francisco Ferreira
parent
commit
eb4298ca3e
  1. 9
      Tools/Hello/Hello.cpp

9
Tools/Hello/Hello.cpp

@ -5,17 +5,20 @@ @@ -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…
Cancel
Save