From be841d5d0a7682e505247ef88def586be341af3e Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Mon, 4 Feb 2019 11:16:30 +1100 Subject: [PATCH] GCS_MAVLink: add sanity check for rally mavlink message handling --- libraries/GCS_MAVLink/GCS_Rally.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/GCS_MAVLink/GCS_Rally.cpp b/libraries/GCS_MAVLink/GCS_Rally.cpp index 4d17adc0bd..83f699daca 100644 --- a/libraries/GCS_MAVLink/GCS_Rally.cpp +++ b/libraries/GCS_MAVLink/GCS_Rally.cpp @@ -94,6 +94,9 @@ void GCS_MAVLINK::handle_common_rally_message(mavlink_message_t *msg) handle_rally_fetch_point(msg); break; default: +#if CONFIG_HAL_BOARD == HAL_BOARD_SITL + AP_HAL::panic("Unhandled common rally message"); +#endif break; } }