From e52931c6921cfd71022cdad917838dd79779b757 Mon Sep 17 00:00:00 2001 From: murata Date: Thu, 10 Feb 2022 23:04:33 +0900 Subject: [PATCH] Sub: Change the process for errors --- ArduSub/GCS_Mavlink.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ArduSub/GCS_Mavlink.cpp b/ArduSub/GCS_Mavlink.cpp index 0f645a8ca9..26e10bdfd7 100644 --- a/ArduSub/GCS_Mavlink.cpp +++ b/ArduSub/GCS_Mavlink.cpp @@ -734,9 +734,7 @@ void GCS_MAVLINK_Sub::handleMessage(const mavlink_message_t &msg) if (sub.far_from_EKF_origin(new_home_loc)) { break; } - if (!sub.set_home(new_home_loc, true)) { - // silently ignored - } + IGNORE_RETURN(sub.set_home(new_home_loc, true)); } break; }