Skip to content

Commit 83003e4

Browse files
committed
Sub: remove redundant home_is_set check
this is already guaranteed to be the case
1 parent 9c87156 commit 83003e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ArduSub/AP_Arming_Sub.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ bool AP_Arming_Sub::arm(AP_Arming::Method method, bool do_arming_checks)
120120
// Always use absolute altitude for ROV
121121
// ahrs.resetHeightDatum();
122122
// AP::logger().Write_Event(LogEvent::EKF_ALT_RESET);
123-
} else if (ahrs.home_is_set() && !ahrs.home_is_locked()) {
123+
} else if (!ahrs.home_is_locked()) {
124124
// Reset home position if it has already been set before (but not locked)
125125
if (!sub.set_home_to_current_location(false)) {
126126
// ignore this failure

0 commit comments

Comments
 (0)