AP_Mount: use GCS_SEND_TEXT rather than gcs().send_text

Co-authored-by: muramura <ma2maru@gmail.com>
This commit is contained in:
Peter Barker 2024-08-07 13:17:21 +10:00 committed by Andrew Tridgell
parent 78afaebe55
commit 496bbde384
2 changed files with 2 additions and 2 deletions

View File

@ -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; const uint8_t fw_ver_build = (info.firmware_version & 0xFF000000) >> 24;
// display gimbal info to user // 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.vendor_name,
info.model_name, info.model_name,
(unsigned)fw_ver_major, (unsigned)fw_ver_major,

View File

@ -128,7 +128,7 @@ void AP_Mount_SToRM32::find_gimbal()
if (GCS_MAVLINK::find_by_mavtype_and_compid(MAV_TYPE_GIMBAL, compid, _sysid, _chan)) { if (GCS_MAVLINK::find_by_mavtype_and_compid(MAV_TYPE_GIMBAL, compid, _sysid, _chan)) {
_compid = compid; _compid = compid;
_initialised = true; _initialised = true;
gcs().send_text(MAV_SEVERITY_INFO, "Mount: SToRM32"); GCS_SEND_TEXT(MAV_SEVERITY_INFO, "Mount: SToRM32");
} }
} }