diff --git a/libraries/GCS_MAVLink/GCS_Common.cpp b/libraries/GCS_MAVLink/GCS_Common.cpp index 7946e3fbf3..9e1c460952 100644 --- a/libraries/GCS_MAVLink/GCS_Common.cpp +++ b/libraries/GCS_MAVLink/GCS_Common.cpp @@ -5883,12 +5883,12 @@ bool GCS_MAVLINK::try_send_message(const enum ap_message id) send_power_status(); break; - case MSG_MCU_STATUS: #if HAL_WITH_MCU_MONITORING + case MSG_MCU_STATUS: CHECK_PAYLOAD_SIZE(MCU_STATUS); send_mcu_status(); -#endif break; +#endif case MSG_RC_CHANNELS: CHECK_PAYLOAD_SIZE(RC_CHANNELS);