From 08588472944b63fbf8ea9b4d5c950650f3cb2e23 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 14 Feb 2019 08:46:04 +1100 Subject: [PATCH] Plane: remove redundant send_ekf_origin --- ArduPlane/commands_logic.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArduPlane/commands_logic.cpp b/ArduPlane/commands_logic.cpp index 13ce8c0c60..ced1b170c2 100644 --- a/ArduPlane/commands_logic.cpp +++ b/ArduPlane/commands_logic.cpp @@ -905,8 +905,8 @@ void Plane::do_set_home(const AP_Mission::Mission_Command& cmd) // silently ignore error } } else { - if (AP::ahrs().set_home(cmd.content.location)) { - gcs().send_ekf_origin(); + if (!AP::ahrs().set_home(cmd.content.location)) { + // silently ignore failure } } }