From 496bbde384a00cf01b055571c59d409c2af42053 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 7 Aug 2024 13:17:21 +1000 Subject: [PATCH] AP_Mount: use GCS_SEND_TEXT rather than gcs().send_text Co-authored-by: muramura --- libraries/AP_Mount/AP_Mount_Gremsy.cpp | 2 +- libraries/AP_Mount/AP_Mount_SToRM32.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_Mount/AP_Mount_Gremsy.cpp b/libraries/AP_Mount/AP_Mount_Gremsy.cpp index 6efe6b7ec4..259de8e90c 100644 --- a/libraries/AP_Mount/AP_Mount_Gremsy.cpp +++ b/libraries/AP_Mount/AP_Mount_Gremsy.cpp @@ -202,7 +202,7 @@ void AP_Mount_Gremsy::handle_gimbal_device_information(const mavlink_message_t & const uint8_t fw_ver_build = (info.firmware_version & 0xFF000000) >> 24; // display gimbal info to user - gcs().send_text(MAV_SEVERITY_INFO, "Mount: %s %s fw:%u.%u.%u.%u", + GCS_SEND_TEXT(MAV_SEVERITY_INFO, "Mount: %s %s fw:%u.%u.%u.%u", info.vendor_name, info.model_name, (unsigned)fw_ver_major, diff --git a/libraries/AP_Mount/AP_Mount_SToRM32.cpp b/libraries/AP_Mount/AP_Mount_SToRM32.cpp index 333bac0577..59e4da66bc 100644 --- a/libraries/AP_Mount/AP_Mount_SToRM32.cpp +++ b/libraries/AP_Mount/AP_Mount_SToRM32.cpp @@ -128,7 +128,7 @@ void AP_Mount_SToRM32::find_gimbal() if (GCS_MAVLINK::find_by_mavtype_and_compid(MAV_TYPE_GIMBAL, compid, _sysid, _chan)) { _compid = compid; _initialised = true; - gcs().send_text(MAV_SEVERITY_INFO, "Mount: SToRM32"); + GCS_SEND_TEXT(MAV_SEVERITY_INFO, "Mount: SToRM32"); } }