Sub: move handling of fence point handling up

This commit is contained in:
Peter Barker 2019-02-04 11:16:55 +11:00 committed by Randy Mackay
parent 47a0796684
commit 0c8f0377ca

View File

@ -997,14 +997,6 @@ void GCS_MAVLINK_Sub::handleMessage(mavlink_message_t* msg)
break;
}
#if AC_FENCE == ENABLED
// send or receive fence points with GCS
case MAVLINK_MSG_ID_FENCE_POINT: // MAV ID: 160
case MAVLINK_MSG_ID_FENCE_FETCH_POINT:
sub.fence.handle_msg(*this, msg);
break;
#endif // AC_FENCE == ENABLED
case MAVLINK_MSG_ID_TERRAIN_DATA:
case MAVLINK_MSG_ID_TERRAIN_CHECK:
#if AP_TERRAIN_AVAILABLE && AC_TERRAIN