Browse Source

Copter: compiler fix for disabled logs

mission-4.1.18
Randy Mackay 12 years ago
parent
commit
f4846b417a
  1. 4
      ArduCopter/motors.pde

4
ArduCopter/motors.pde

@ -89,9 +89,11 @@ static void init_arm_motors()
// disable cpu failsafe because initialising everything takes a while // disable cpu failsafe because initialising everything takes a while
failsafe_disable(); failsafe_disable();
#if LOGGING_ENABLED == ENABLED
// start dataflash // start dataflash
start_logging(); start_logging();
#endif
#if HIL_MODE != HIL_MODE_DISABLED || CONFIG_HAL_BOARD == HAL_BOARD_AVR_SITL #if HIL_MODE != HIL_MODE_DISABLED || CONFIG_HAL_BOARD == HAL_BOARD_AVR_SITL
gcs_send_text_P(SEVERITY_HIGH, PSTR("ARMING MOTORS")); gcs_send_text_P(SEVERITY_HIGH, PSTR("ARMING MOTORS"));

Loading…
Cancel
Save