mirror of https://github.com/ArduPilot/ardupilot
Plane: remove redundant calls to safety_state
This commit is contained in:
parent
d3ac1dc161
commit
4785650c95
|
@ -276,7 +276,6 @@ bool Plane::setup_failsafe_mixing(void)
|
|||
// it twice as there have been reports that this call can fail
|
||||
// with a small probability
|
||||
hal.rcout->force_safety_on();
|
||||
hal.rcout->force_safety_on();
|
||||
|
||||
/* reset any existing mixer in px4io. This shouldn't be needed,
|
||||
* but is good practice */
|
||||
|
@ -392,7 +391,6 @@ failed:
|
|||
// restore safety state if it was previously armed
|
||||
if (old_state == AP_HAL::Util::SAFETY_ARMED) {
|
||||
hal.rcout->force_safety_off();
|
||||
hal.rcout->force_safety_off();
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue