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 f7dda9f413
commit 66029af574

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