From 082eb83f302353da089fafc3f774839768ec5f44 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sat, 13 Aug 2022 12:07:22 +1000 Subject: [PATCH] Rover: return true straight away in prearm checks if armed mirrors equivalent clause in Plane --- Rover/AP_Arming.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Rover/AP_Arming.cpp b/Rover/AP_Arming.cpp index 884051e191..1fedf998e4 100644 --- a/Rover/AP_Arming.cpp +++ b/Rover/AP_Arming.cpp @@ -71,6 +71,11 @@ bool AP_Arming_Rover::gps_checks(bool display_failure) bool AP_Arming_Rover::pre_arm_checks(bool report) { + if (armed) { + // if we are already armed then skip the checks + return true; + } + //are arming checks disabled? if (checks_to_perform == 0) { return true;