ArduCopter: don't send fence_status mavlink message if fence not compiled in

This commit is contained in:
Peter Barker 2023-10-03 20:49:34 +11:00 committed by Peter Barker
parent 3dfd06cff2
commit cd92e301ab

View File

@ -511,7 +511,9 @@ static const ap_message STREAM_EXTENDED_STATUS_msgs[] = {
MSG_GPS2_RAW,
MSG_GPS2_RTK,
MSG_NAV_CONTROLLER_OUTPUT,
#if AP_FENCE_ENABLED
MSG_FENCE_STATUS,
#endif
MSG_POSITION_TARGET_GLOBAL_INT,
};
static const ap_message STREAM_POSITION_msgs[] = {