From 4c76620402dc891607601fc67652f39ad8c1199c Mon Sep 17 00:00:00 2001 From: Alessio Morale Date: Sat, 27 Sep 2014 22:40:17 +0200 Subject: [PATCH] OP-1507 - Reduce memory usage for CopterControl --- flight/modules/GPS/GPS.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/flight/modules/GPS/GPS.c b/flight/modules/GPS/GPS.c index cb3e11b61..0fced5374 100644 --- a/flight/modules/GPS/GPS.c +++ b/flight/modules/GPS/GPS.c @@ -85,19 +85,22 @@ void updateGpsSettings(UAVObjEvent *ev); #define GPS_LOOP_DELAY_MS 6 -#define GPS_READ_BUFFER 128 - #ifdef PIOS_GPS_SETS_HOMELOCATION // Unfortunately need a good size stack for the WMM calculation #define STACK_SIZE_BYTES 1024 #else #if defined(PIOS_GPS_MINIMAL) + #define GPS_READ_BUFFER 32 #define STACK_SIZE_BYTES 500 #else #define STACK_SIZE_BYTES 650 #endif // PIOS_GPS_MINIMAL #endif // PIOS_GPS_SETS_HOMELOCATION +#ifndef GPS_READ_BUFFER +#define GPS_READ_BUFFER 128 +#endif + #define TASK_PRIORITY (tskIDLE_PRIORITY + 1) // ****************