From de442b7a3c1f04aa001f94fe4a2c0868333afadb Mon Sep 17 00:00:00 2001 From: "tridge60@gmail.com" Date: Mon, 21 Mar 2011 07:30:51 +0000 Subject: [PATCH] separate out automatic reset of modes and radio git-svn-id: https://arducopter.googlecode.com/svn/trunk@1804 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- ArduCopterMega/system.pde | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ArduCopterMega/system.pde b/ArduCopterMega/system.pde index c773ea07f1..719878ee81 100644 --- a/ArduCopterMega/system.pde +++ b/ArduCopterMega/system.pde @@ -124,7 +124,7 @@ void init_ardupilot() init_rc_in(); // sets up rc channels from radio init_rc_out(); // sets up the timer libs -#ifdef ALWAYS_RESET_SETTINGS +#ifdef ALWAYS_RESET_RADIO_RANGE { RC_Channel *rcp = &g.rc_1; for (unsigned char i=0; i<8; i++) { @@ -133,7 +133,9 @@ void init_ardupilot() rcp[i].save_eeprom(); } } +#endif +#ifdef ALWAYS_RESET_MODES default_flight_modes(); #endif