don't initialise DataFlash if logging is disabled

This commit is contained in:
Andrew Tridgell 2011-10-09 22:38:49 +11:00
parent 85e8316809
commit 06ddaa2d81
1 changed files with 2 additions and 0 deletions

View File

@ -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.