From 83003e4fbed40ca8ecff5251383d5e0c9b146a54 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 11 Apr 2024 19:05:57 +1000 Subject: [PATCH] Sub: remove redundant home_is_set check this is already guaranteed to be the case --- ArduSub/AP_Arming_Sub.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduSub/AP_Arming_Sub.cpp b/ArduSub/AP_Arming_Sub.cpp index 463d78a4eaabc..c3749c3f0cb2d 100644 --- a/ArduSub/AP_Arming_Sub.cpp +++ b/ArduSub/AP_Arming_Sub.cpp @@ -120,7 +120,7 @@ bool AP_Arming_Sub::arm(AP_Arming::Method method, bool do_arming_checks) // Always use absolute altitude for ROV // ahrs.resetHeightDatum(); // AP::logger().Write_Event(LogEvent::EKF_ALT_RESET); - } else if (ahrs.home_is_set() && !ahrs.home_is_locked()) { + } else if (!ahrs.home_is_locked()) { // Reset home position if it has already been set before (but not locked) if (!sub.set_home_to_current_location(false)) { // ignore this failure