From 6ed09d83f35cb7d20c853b7b069a1406378699e9 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Sat, 8 Jun 2019 12:55:03 +0900 Subject: [PATCH] GCS_MAVLink: send_home_position uses const Location reference --- libraries/GCS_MAVLink/GCS_Common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/GCS_MAVLink/GCS_Common.cpp b/libraries/GCS_MAVLink/GCS_Common.cpp index 8d2d027ae6..e41d7e6680 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -2498,7 +2498,7 @@ void GCS_MAVLINK::send_home_position() const return; } - Location home = AP::ahrs().get_home(); + const Location &home = AP::ahrs().get_home(); const float q[4] = {1.0f, 0.0f, 0.0f, 0.0f}; mavlink_msg_home_position_send(