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"); } }