Skip to content

Commit a2a4548

Browse files
committed
GCS_MAVLink: add AC_POLYFENCE_CIRCLE_INT_SUPPORT_ENABLED
... and a plan to get rid of this compatability code
1 parent 3be24c3 commit a2a4548

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/GCS_MAVLink/MissionItemProtocol_Fence.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,13 @@ bool MissionItemProtocol_Fence::get_item_as_mission_item(uint16_t seq,
5252
ret_cmd = MAV_CMD_NAV_FENCE_CIRCLE_INCLUSION;
5353
p1 = fenceitem.radius;
5454
break;
55+
#if AC_POLYFENCE_CIRCLE_INT_SUPPORT_ENABLED
5556
case AC_PolyFenceType::CIRCLE_EXCLUSION_INT:
5657
case AC_PolyFenceType::CIRCLE_INCLUSION_INT:
5758
// should never have an AC_PolyFenceItem with these types
5859
INTERNAL_ERROR(AP_InternalError::error_t::flow_of_control);
5960
FALLTHROUGH;
61+
#endif // AC_POLYFENCE_CIRCLE_INT_SUPPORT_ENABLED
6062
case AC_PolyFenceType::END_OF_STORAGE:
6163
return false;
6264
}

0 commit comments

Comments
 (0)