From 0ef5d8995b2997461d787739ae6ee20e28871f26 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 12 Jan 2016 09:21:54 +1100 Subject: [PATCH] AP_Mount: support mavlink2 build --- libraries/AP_Mount/AP_Mount_SToRM32_serial.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/AP_Mount/AP_Mount_SToRM32_serial.cpp b/libraries/AP_Mount/AP_Mount_SToRM32_serial.cpp index a97a12ec80..b403dddc55 100644 --- a/libraries/AP_Mount/AP_Mount_SToRM32_serial.cpp +++ b/libraries/AP_Mount/AP_Mount_SToRM32_serial.cpp @@ -3,7 +3,11 @@ #include "AP_Mount_SToRM32_serial.h" #include #include +#if MAVLINK_PROTOCOL_VERSION == 2 +#include +#else #include +#endif #include extern const AP_HAL::HAL& hal;