Browse Source

AP_HAL_VRBRAIN: attempt to initialize USB while soft-disarmed

mission-4.1.18
Jonathan Challinger 10 years ago committed by Andrew Tridgell
parent
commit
59cf1c29ff
  1. 2
      libraries/AP_HAL_VRBRAIN/UARTDriver.cpp

2
libraries/AP_HAL_VRBRAIN/UARTDriver.cpp

@ -191,7 +191,7 @@ void VRBRAINUARTDriver::try_initialise(void) @@ -191,7 +191,7 @@ void VRBRAINUARTDriver::try_initialise(void)
return;
}
_last_initialise_attempt_ms = hal.scheduler->millis();
if (hal.util->safety_switch_state() != AP_HAL::Util::SAFETY_ARMED) {
if (hal.util->safety_switch_state() != AP_HAL::Util::SAFETY_ARMED || !hal.util->get_soft_armed()) {
begin(0);
}
}

Loading…
Cancel
Save