Skip to content
This repository was archived by the owner on Oct 1, 2021. It is now read-only.

Commit 2f2bc28

Browse files
committed
uavcan: fixed build with MAVLink2
1 parent 4e5cccf commit 2f2bc28

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/modules/uavcan/uavcan_servers.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@
6262
#include <uORB/topics/uavcan_parameter_request.h>
6363
#include <uORB/topics/uavcan_parameter_value.h>
6464

65+
#if MAVLINK_PROTOCOL_VERSION == 2
66+
#include <include/mavlink/v2.0/common/mavlink.h>
67+
#else
6568
#include <include/mavlink/v1.0/common/mavlink.h>
69+
#endif
6670

6771
//todo:The Inclusion of file_server_backend is killing
6872
// #include <sys/types.h> and leaving OK undefined

0 commit comments

Comments
 (0)