From ff2a31e3ae71a61d26329b1acfda7d435c1205f9 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Tue, 27 Jan 2015 22:12:12 +0900 Subject: [PATCH] Plane: compile error fix when mount disabled --- ArduPlane/system.pde | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ArduPlane/system.pde b/ArduPlane/system.pde index 19aa7238c9..c4e83b3f2c 100644 --- a/ArduPlane/system.pde +++ b/ArduPlane/system.pde @@ -183,8 +183,10 @@ static void init_ardupilot() relay.init(); +#if MOUNT == ENABLED // initialise camera mount camera_mount.init(serial_manager); +#endif #if FENCE_TRIGGERED_PIN > 0 hal.gpio->pinMode(FENCE_TRIGGERED_PIN, HAL_GPIO_OUTPUT);