From 8f836b2fd6bf4a8ef3c608b92fcd76001bf53c44 Mon Sep 17 00:00:00 2001 From: Amilcar Lucas Date: Sat, 4 Aug 2012 16:32:20 +0200 Subject: [PATCH] ATmega1280 does not have enough memory for mount support so disable AUTO GPS support, to allow mount support to fit. This should almost have no side effects, because the most users use MTK anyways. If the user defined a GPS protocol, than we will NOT overwrite it --- ArduPlane/config.h | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/ArduPlane/config.h b/ArduPlane/config.h index 29fb45fdd3..8a36eb03b0 100644 --- a/ArduPlane/config.h +++ b/ArduPlane/config.h @@ -485,11 +485,22 @@ # define MOUNT ENABLED #endif -#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. +#if defined( __AVR_ATmega1280__ ) && (MOUNT == ENABLED) + +// The small ATmega1280 chip does not have enough memory for mount support +// so disable CLI, this will allow mount support and other improvements to fit. // This should almost have no side effects, because the APM planner can now do a complete board setup. -#define CLI_ENABLED DISABLED +# define CLI_ENABLED DISABLED + +// The small ATmega1280 chip does not have enough memory for mount support +// so disable AUTO GPS support, this will allow mount support and other improvements to fit. +// This should almost have no side effects, because the most users use MTK anyways. +// If the user defined a GPS protocol, than we will NOT overwrite it +# if GPS_PROTOCOL == GPS_PROTOCOL_AUTO +# undef GPS_PROTOCOL +# define GPS_PROTOCOL GPS_PROTOCOL_MTK +# endif + #endif