mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
AP_HAL_FLYMAPLE: Fix example Scheduler.pde to compile with recent changes to
scheduler API
This commit is contained in:
parent
36cc266626
commit
bc55a2844c
@ -21,6 +21,12 @@
|
||||
#undef millis
|
||||
#undef micros
|
||||
|
||||
// Flymaple: Force init to be called *first*, i.e. before static object allocation.
|
||||
// Otherwise, statically allocated objects (eg SerialUSB) that need libmaple may fail.
|
||||
__attribute__((constructor)) void premain() {
|
||||
init();
|
||||
}
|
||||
|
||||
// Not declared in any libmaple headers :-(
|
||||
extern "C"
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user