GCS_MAVLink: tidy sending of queued opticalflow messages

This commit is contained in:
Peter Barker 2023-10-27 18:13:07 +11:00 committed by Andrew Tridgell
parent 7229664ecd
commit 0983bd2d06

View File

@ -5856,12 +5856,12 @@ bool GCS_MAVLINK::try_send_message(const enum ap_message id)
break;
#endif // HAL_MOUNT_ENABLED
case MSG_OPTICAL_FLOW:
#if AP_OPTICALFLOW_ENABLED
case MSG_OPTICAL_FLOW:
CHECK_PAYLOAD_SIZE(OPTICAL_FLOW);
send_opticalflow();
#endif
break;
#endif
case MSG_ATTITUDE_TARGET:
CHECK_PAYLOAD_SIZE(ATTITUDE_TARGET);