diff --git a/AntennaTracker/GCS_Mavlink.h b/AntennaTracker/GCS_Mavlink.h index b4a2091d2d..0f671dca82 100644 --- a/AntennaTracker/GCS_Mavlink.h +++ b/AntennaTracker/GCS_Mavlink.h @@ -28,8 +28,8 @@ protected: return 0; // what if we have been picked up and carried somewhere? } - bool set_home_to_current_location(bool lock) override { return false; } - bool set_home(const Location& loc, bool lock) override { return false; } + bool set_home_to_current_location(bool lock) override WARN_IF_UNUSED { return false; } + bool set_home(const Location& loc, bool lock) override WARN_IF_UNUSED { return false; } private: diff --git a/AntennaTracker/system.cpp b/AntennaTracker/system.cpp index 0dfb7214c6..5f2ebbe3f7 100644 --- a/AntennaTracker/system.cpp +++ b/AntennaTracker/system.cpp @@ -156,7 +156,9 @@ void Tracker::set_home(struct Location temp) // check EKF origin has been set Location ekf_origin; if (ahrs.get_origin(ekf_origin)) { - ahrs.set_home(temp); + if (!ahrs.set_home(temp)) { + // ignore error silently + } } }