mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_VRBRAIN: attempt to initialize USB while soft-disarmed
This commit is contained in:
parent
e908fcafb1
commit
59cf1c29ff
|
@ -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…
Reference in New Issue