setup the main loop failsafe after RC library is setup

This commit is contained in:
Andrew Tridgell 2011-12-23 11:11:59 +11:00
parent 5bda871d60
commit 5e347854c3
1 changed files with 6 additions and 1 deletions

View File

@ -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.
//