mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-09 09:28:31 -04:00
AP_HAL_PX4: attempt to initialize USB while soft-disarmed
This commit is contained in:
parent
c2d60ed7a8
commit
e908fcafb1
@ -193,7 +193,7 @@ void PX4UARTDriver::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
Block a user