From 36b854fa989687750d5611f8f17acfb1e8694444 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 3 Sep 2014 13:20:31 +1000 Subject: [PATCH] AP_Mission: fixed build for arduino IDE --- libraries/AP_Mission/AP_Mission.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_Mission/AP_Mission.cpp b/libraries/AP_Mission/AP_Mission.cpp index bb62a0695e..e10e539a2e 100644 --- a/libraries/AP_Mission/AP_Mission.cpp +++ b/libraries/AP_Mission/AP_Mission.cpp @@ -471,7 +471,7 @@ bool AP_Mission::mavlink_to_mission_cmd(const mavlink_mission_item_t& packet, AP in the cmd structure. When we expand the mission structure we can do this properly */ -#if APM_BUILD_TYPE(APM_BUILD_ArduPlane) +#if defined(APM_BUILD_DIRECTORY) && APM_BUILD_TYPE(APM_BUILD_ArduPlane) // acceptance radius in meters cmd.p1 = packet.param2; #else