don't initialise DataFlash if logging is disabled

this fixes HIL without an IMU
This commit is contained in:
Andrew Tridgell 2011-10-08 09:12:57 +11:00
parent 63ac6bcd94
commit e7e8165bc7
1 changed files with 2 additions and 0 deletions

View File

@ -151,7 +151,9 @@ static void init_ardupilot()
*/
#endif
#if LOGGING_ENABLED == ENABLED
DataFlash.Init(); // DataFlash log initialization
#endif
// Do GPS init
g_gps = &g_gps_driver;