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

This commit is contained in:
Peter Barker 2023-10-03 20:49:35 +11:00 committed by Peter Barker
parent 705f2102de
commit e71baf4a6a
1 changed files with 2 additions and 0 deletions

View File

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