diff --git a/ArduSub/GCS_Mavlink.cpp b/ArduSub/GCS_Mavlink.cpp index 042ccd1cce..a4203dafa3 100644 --- a/ArduSub/GCS_Mavlink.cpp +++ b/ArduSub/GCS_Mavlink.cpp @@ -763,21 +763,6 @@ MAV_RESULT GCS_MAVLINK_Sub::handle_command_long_packet(const mavlink_command_lon } return MAV_RESULT_FAILED; -#if AC_FENCE == ENABLED - case MAV_CMD_DO_FENCE_ENABLE: - switch ((uint16_t)packet.param1) { - case 0: - sub.fence.enable(false); - return MAV_RESULT_ACCEPTED; - case 1: - sub.fence.enable(true); - return MAV_RESULT_ACCEPTED; - default: - break; - } - return MAV_RESULT_FAILED; -#endif - case MAV_CMD_DO_MOTOR_TEST: // param1 : motor sequence number (a number from 1 to max number of motors on the vehicle) // param2 : throttle type (0=throttle percentage, 1=PWM, 2=pilot throttle channel pass-through. See MOTOR_TEST_THROTTLE_TYPE enum)