Browse Source

don't initialise DataFlash if logging is disabled

this fixes HIL without an IMU
mission-4.1.18
Andrew Tridgell 14 years ago
parent
commit
e7e8165bc7
  1. 2
      ArduPlane/system.pde

2
ArduPlane/system.pde

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

Loading…
Cancel
Save