Browse Source

don't initialise DataFlash if logging is disabled

master
Andrew Tridgell 14 years ago
parent
commit
c61fe55d76
  1. 2
      ArduCopter/system.pde

2
ArduCopter/system.pde

@ -222,7 +222,9 @@ static void init_ardupilot() @@ -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.

Loading…
Cancel
Save