From 88b73492c2b55aa8986f026ab333620c24b77b96 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 25 Jul 2014 08:02:19 +1000 Subject: [PATCH] Plane: fixed APM2 build --- ArduPlane/altitude.pde | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArduPlane/altitude.pde b/ArduPlane/altitude.pde index 66ea208233..24b8065eec 100644 --- a/ArduPlane/altitude.pde +++ b/ArduPlane/altitude.pde @@ -357,9 +357,11 @@ static bool above_location_current(const Location &loc) */ static void setup_terrain_target_alt(Location &loc) { +#if AP_TERRAIN_AVAILABLE if (g.terrain_follow) { loc.flags.terrain_alt = true; } +#endif } /*