From 4785650c95865bc03781c88e1a84c5d5c7ecb9bb Mon Sep 17 00:00:00 2001 From: Tom Pittenger Date: Thu, 26 May 2016 23:40:08 -0700 Subject: [PATCH] Plane: remove redundant calls to safety_state --- ArduPlane/px4_mixer.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/ArduPlane/px4_mixer.cpp b/ArduPlane/px4_mixer.cpp index eb4e9bb123..ecd57be30b 100644 --- a/ArduPlane/px4_mixer.cpp +++ b/ArduPlane/px4_mixer.cpp @@ -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; }