diff --git a/ArduPlane/fence.cpp b/ArduPlane/fence.cpp index 22dfbf2015d4c8..a2390cb499f74d 100644 --- a/ArduPlane/fence.cpp +++ b/ArduPlane/fence.cpp @@ -50,7 +50,11 @@ void Plane::fence_check() } if (new_breaches) { - GCS_SEND_TEXT(MAV_SEVERITY_NOTICE, "Fence Breached"); + char msg[MAVLINK_MSG_STATUSTEXT_FIELD_TEXT_LEN+1]; + uint8_t msglen = AC_Fence::get_fence_names(new_breaches, msg, MAVLINK_MSG_STATUSTEXT_FIELD_TEXT_LEN); + msg[msglen] = 0; + + GCS_SEND_TEXT(MAV_SEVERITY_NOTICE, "%s breached", msg); // if the user wants some kind of response and motors are armed const uint8_t fence_act = fence.get_action();