From 87058ef1412a32f9d7b8eb03fc5094a6a1d144a4 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 12 Sep 2019 19:06:42 +1000 Subject: [PATCH] Plane: rename parameter to avoid name conflict with lock --- ArduPlane/GCS_Mavlink.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ArduPlane/GCS_Mavlink.cpp b/ArduPlane/GCS_Mavlink.cpp index 9aa183ce68..6e14b893fb 100644 --- a/ArduPlane/GCS_Mavlink.cpp +++ b/ArduPlane/GCS_Mavlink.cpp @@ -709,22 +709,22 @@ void GCS_MAVLINK_Plane::packetReceived(const mavlink_status_t &status, } -bool GCS_MAVLINK_Plane::set_home_to_current_location(bool lock) +bool GCS_MAVLINK_Plane::set_home_to_current_location(bool _lock) { if (!plane.set_home_persistently(AP::gps().location())) { return false; } - if (lock) { + if (_lock) { AP::ahrs().lock_home(); } return true; } -bool GCS_MAVLINK_Plane::set_home(const Location& loc, bool lock) +bool GCS_MAVLINK_Plane::set_home(const Location& loc, bool _lock) { if (!AP::ahrs().set_home(loc)) { return false; } - if (lock) { + if (_lock) { AP::ahrs().lock_home(); } return true;