GCS_MAVLink: cope with polyfence holding boundary points

This commit is contained in:
Peter Barker 2019-05-22 15:03:59 +10:00 committed by Randy Mackay
parent 5fe16d5250
commit 74aed5aef8

View File

@ -31,7 +31,7 @@ void GCS_MAVLINK::handle_fence_message(const mavlink_message_t &msg)
switch (msg.msgid) { switch (msg.msgid) {
case MAVLINK_MSG_ID_FENCE_POINT: case MAVLINK_MSG_ID_FENCE_POINT:
case MAVLINK_MSG_ID_FENCE_FETCH_POINT: case MAVLINK_MSG_ID_FENCE_FETCH_POINT:
fence->handle_msg(*this, msg); fence->polyfence().handle_msg(*this, msg);
break; break;
default: default:
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL #if CONFIG_HAL_BOARD == HAL_BOARD_SITL