GCS_MAVLink: tidy sending of efi messages

This commit is contained in:
Peter Barker 2023-10-27 18:24:43 +11:00 committed by Andrew Tridgell
parent cfb78a43ec
commit 564e6ec77a

View File

@ -6010,16 +6010,16 @@ bool GCS_MAVLINK::try_send_message(const enum ap_message id)
break;
#endif
case MSG_EFI_STATUS: {
#if HAL_EFI_ENABLED
case MSG_EFI_STATUS: {
CHECK_PAYLOAD_SIZE(EFI_STATUS);
AP_EFI *efi = AP::EFI();
if (efi) {
efi->send_mavlink_status(chan);
}
#endif
break;
}
#endif
case MSG_WINCH_STATUS:
CHECK_PAYLOAD_SIZE(WINCH_STATUS);