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; } }