diff --git a/libraries/AP_HAL_QURT/RCOutput.cpp b/libraries/AP_HAL_QURT/RCOutput.cpp index 0fc917a3d1..45365abfc3 100644 --- a/libraries/AP_HAL_QURT/RCOutput.cpp +++ b/libraries/AP_HAL_QURT/RCOutput.cpp @@ -4,7 +4,11 @@ #if CONFIG_HAL_BOARD == HAL_BOARD_QURT #include "RCOutput.h" +#if MAVLINK_PROTOCOL_VERSION == 2 +#include +#else #include +#endif #include #include #include