Rover: return true straight away in prearm checks if armed

mirrors equivalent clause in Plane
This commit is contained in:
Peter Barker 2022-08-13 12:07:22 +10:00 committed by Andrew Tridgell
parent 9b1b06fd95
commit 082eb83f30
1 changed files with 5 additions and 0 deletions

View File

@ -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;