Skip to content

Commit

Permalink
AP_HAL_VRBRAIN: attempt to initialize USB while soft-disarmed
Browse files Browse the repository at this point in the history
  • Loading branch information
jschall committed Jan 28, 2015
1 parent 293e6ac commit 6201b8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_HAL_VRBRAIN/UARTDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 6201b8a

Please sign in to comment.