From 06ddaa2d813701bd7e1885ae8ce5dcdcf36f79a6 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 9 Oct 2011 22:38:49 +1100 Subject: [PATCH] don't initialise DataFlash if logging is disabled --- ArduCopter/system.pde | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArduCopter/system.pde b/ArduCopter/system.pde index e206bb8708..bdbb861447 100644 --- a/ArduCopter/system.pde +++ b/ArduCopter/system.pde @@ -222,7 +222,9 @@ static void init_ardupilot() // Logging: // -------- // DataFlash log initialization +#if LOGGING_ENABLED == ENABLED DataFlash.Init(); +#endif #if CLI_ENABLED == ENABLED // If the switch is in 'menu' mode, run the main menu.