From e23c869c5ded226fef08c8f0b52c8dc414206f14 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Fri, 22 Apr 2016 21:25:17 +0900 Subject: [PATCH] AC_WPNav: fix reporting of set_wp_destination failure --- libraries/AC_WPNav/AC_WPNav.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libraries/AC_WPNav/AC_WPNav.cpp b/libraries/AC_WPNav/AC_WPNav.cpp index 960d80c574..5a82468ae3 100644 --- a/libraries/AC_WPNav/AC_WPNav.cpp +++ b/libraries/AC_WPNav/AC_WPNav.cpp @@ -439,9 +439,7 @@ bool AC_WPNav::set_wp_destination(const Location_Class& destination) } // set target as vector from EKF origin - set_wp_destination(dest_neu, terr_alt); - - return true; + return set_wp_destination(dest_neu, terr_alt); } /// set_wp_destination waypoint using position vector (distance from home in cm)