From 2cebd44313c8a00fbacd6d83424e7ebf68d899c1 Mon Sep 17 00:00:00 2001 From: Amilcar Lucas Date: Wed, 13 Jun 2012 21:08:09 +0200 Subject: [PATCH] With CLI and MOUNT active, the linker says: region `text' overflowed by 3858 bytes So disable CLI when MOUNT is active. Sorry I did not detect it before, but the APM_Camera branch worked in a different way. --- ArduPlane/config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduPlane/config.h b/ArduPlane/config.h index c8456b6237..76dab77c8b 100644 --- a/ArduPlane/config.h +++ b/ArduPlane/config.h @@ -492,7 +492,7 @@ # define MOUNT ENABLED #endif -#if defined( __AVR_ATmega1280__ ) && CAMERA == ENABLED +#if defined( __AVR_ATmega1280__ ) && (CAMERA == ENABLED || MOUNT == ENABLED) // The small ATmega1280 chip does not have enough memory for camera support // so disable CLI, this will allow camera support and other improvements to fit. // This should almost have no side effects, because the APM planner can now do a complete board setup.