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.