From 8a1fcfd0f45f3b288b3f6d485cec23acb0ac72b2 Mon Sep 17 00:00:00 2001 From: Jason Short Date: Mon, 28 Nov 2011 21:40:22 -0800 Subject: [PATCH] cleanup --- ArduCopter/system.pde | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ArduCopter/system.pde b/ArduCopter/system.pde index 9618148c66..6b50b3dfcf 100644 --- a/ArduCopter/system.pde +++ b/ArduCopter/system.pde @@ -163,16 +163,13 @@ static void init_ardupilot() Serial.printf_P(PSTR("Firmware change: erasing EEPROM...\n")); delay(100); // wait for serial send AP_Var::erase_all(); - + // erase DataFlash on format version change #if LOGGING_ENABLED == ENABLED - DataFlash.Init(); + DataFlash.Init(); erase_logs(NULL, NULL); #endif - // clear logs - createing infinate lockup - //erase_logs(NULL, NULL); - // save the new format version g.format_version.set_and_save(Parameters::k_format_version);