From 169d2dd286129ffce9aca75b69e086b568852b15 Mon Sep 17 00:00:00 2001 From: Konrad Date: Wed, 13 Dec 2023 14:17:22 +0100 Subject: [PATCH] mission_base: fix validity on abort landing --- src/modules/navigator/mission_base.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/navigator/mission_base.cpp b/src/modules/navigator/mission_base.cpp index c085f7ca9492..11f2ed7be1de 100644 --- a/src/modules/navigator/mission_base.cpp +++ b/src/modules/navigator/mission_base.cpp @@ -831,7 +831,7 @@ MissionBase::do_abort_landing() } else { // move mission index back (landing approach point) - _is_current_planned_mission_item_valid = goToPreviousItem(false); + _is_current_planned_mission_item_valid = (goToPreviousItem(false) == PX4_OK); } // send reposition cmd to get out of mission