AP_LandingGear: 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 9a1aece9ab
commit 52d5b4e684
1 changed files with 2 additions and 2 deletions

View File

@ -168,7 +168,7 @@ void AP_LandingGear::deploy()
// send message only if output has been configured // send message only if output has been configured
if (!_deployed && if (!_deployed &&
SRV_Channels::function_assigned(SRV_Channel::k_landing_gear_control)) { 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 // set deployed flag
@ -194,7 +194,7 @@ void AP_LandingGear::retract()
// send message only if output has been configured // send message only if output has been configured
if (SRV_Channels::function_assigned(SRV_Channel::k_landing_gear_control)) { 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");
} }
} }