mirror of https://github.com/ArduPilot/ardupilot
Plane: do not parse GEOFENCE packets when geofence is disabled via compile option
This commit is contained in:
parent
af1407a155
commit
954c987075
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue