Plane: do not parse GEOFENCE packets when geofence is disabled via compile option

This commit is contained in:
Tom Pittenger 2016-06-01 17:25:32 -07:00
parent af1407a155
commit 954c987075
1 changed files with 2 additions and 2 deletions

View File

@ -756,12 +756,12 @@ bool GCS_MAVLINK_Plane::try_send_message(enum ap_message id)
// depreciated, use GCS_MAVLINK::send_statustext*
return false;
#if GEOFENCE_ENABLED == ENABLED
case MSG_FENCE_STATUS:
#if GEOFENCE_ENABLED == ENABLED
CHECK_PAYLOAD_SIZE(FENCE_STATUS);
plane.send_fence_status(chan);
break;
#endif
break;
case MSG_AHRS:
CHECK_PAYLOAD_SIZE(AHRS);