From 44891ce570fed3d3af48206bd52a7f104ac80044 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 5 Apr 2024 10:36:20 +1100 Subject: [PATCH] AP_Vehicle: base-class implementation of set_home --- libraries/AP_Vehicle/AP_Vehicle.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Vehicle/AP_Vehicle.h b/libraries/AP_Vehicle/AP_Vehicle.h index 725b1a2e11df2..0ea6a802ca665 100644 --- a/libraries/AP_Vehicle/AP_Vehicle.h +++ b/libraries/AP_Vehicle/AP_Vehicle.h @@ -290,8 +290,8 @@ class AP_Vehicle : public AP_HAL::HAL::Callbacks { virtual bool get_rate_ef_targets(Vector3f& rate_ef_targets) const { return false; } #if AP_AHRS_ENABLED - virtual bool set_home_to_current_location(bool lock) WARN_IF_UNUSED = 0; - virtual bool set_home(const Location& loc, bool lock) WARN_IF_UNUSED = 0; + virtual bool set_home_to_current_location(bool lock) WARN_IF_UNUSED { return false; } + virtual bool set_home(const Location& loc, bool lock) WARN_IF_UNUSED { return false; } #endif protected: