From 52d5b4e68472648df005d79fa98d2b0e401dc7db Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 7 Aug 2024 13:17:21 +1000 Subject: [PATCH] AP_LandingGear: use GCS_SEND_TEXT rather than gcs().send_text Co-authored-by: muramura --- libraries/AP_LandingGear/AP_LandingGear.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_LandingGear/AP_LandingGear.cpp b/libraries/AP_LandingGear/AP_LandingGear.cpp index 7ac8971994..ed2591cd3b 100644 --- a/libraries/AP_LandingGear/AP_LandingGear.cpp +++ b/libraries/AP_LandingGear/AP_LandingGear.cpp @@ -168,7 +168,7 @@ void AP_LandingGear::deploy() // send message only if output has been configured if (!_deployed && SRV_Channels::function_assigned(SRV_Channel::k_landing_gear_control)) { - gcs().send_text(MAV_SEVERITY_INFO, "LandingGear: DEPLOY"); + GCS_SEND_TEXT(MAV_SEVERITY_INFO, "LandingGear: DEPLOY"); } // set deployed flag @@ -194,7 +194,7 @@ void AP_LandingGear::retract() // send message only if output has been configured if (SRV_Channels::function_assigned(SRV_Channel::k_landing_gear_control)) { - gcs().send_text(MAV_SEVERITY_INFO, "LandingGear: RETRACT"); + GCS_SEND_TEXT(MAV_SEVERITY_INFO, "LandingGear: RETRACT"); } }