setup the main loop failsafe after RC library is setup
This commit is contained in:
parent
f7dda9f413
commit
66029af574
@ -123,7 +123,6 @@ static void init_ardupilot()
|
||||
//
|
||||
|
||||
timer_scheduler.init( & isr_registry );
|
||||
timer_scheduler.set_failsafe(failsafe_check);
|
||||
|
||||
//
|
||||
// Check the EEPROM format version before loading any parameters from EEPROM.
|
||||
@ -242,6 +241,12 @@ static void init_ardupilot()
|
||||
digitalWrite(FENCE_TRIGGERED_PIN, LOW);
|
||||
#endif
|
||||
|
||||
/*
|
||||
setup the 'main loop is dead' check. Note that this relies on
|
||||
the RC library being initialised.
|
||||
*/
|
||||
timer_scheduler.set_failsafe(failsafe_check);
|
||||
|
||||
|
||||
// If the switch is in 'menu' mode, run the main menu.
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user