From 2f2bc28fe1c2851afe3e2f6ec65c391c01dba672 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 7 Apr 2016 16:32:14 +1000 Subject: [PATCH] uavcan: fixed build with MAVLink2 --- src/modules/uavcan/uavcan_servers.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/uavcan/uavcan_servers.cpp b/src/modules/uavcan/uavcan_servers.cpp index 98e6df7a025d..da5790bed13c 100644 --- a/src/modules/uavcan/uavcan_servers.cpp +++ b/src/modules/uavcan/uavcan_servers.cpp @@ -62,7 +62,11 @@ #include #include +#if MAVLINK_PROTOCOL_VERSION == 2 +#include +#else #include +#endif //todo:The Inclusion of file_server_backend is killing // #include and leaving OK undefined