altos: Set TeleGPS default log size to half of avaiable memory
authorKeith Packard <keithp@keithp.com>
Tue, 10 Jun 2014 16:55:04 +0000 (09:55 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 10 Jun 2014 16:55:04 +0000 (09:55 -0700)
LPC11U14 doesn't have on-chip config space, so we're consuming a block
of external flash. As a result, only 1984kB are available for
logging. Set the default log size to half of that to store two flights.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/telegps-v0.3/ao_pins.h
src/telegps-v1.0/ao_pins.h

index 343e33010487709579b40ecf90b9eb3376deedfc..83151179a4b7cd97f6be7fc2de4a7899e37847d6 100644 (file)
@@ -73,7 +73,7 @@
 
 #define AO_CONFIG_DEFAULT_APRS_INTERVAL                0
 #define AO_CONFIG_DEFAULT_RADIO_POWER          0xc0
 
 #define AO_CONFIG_DEFAULT_APRS_INTERVAL                0
 #define AO_CONFIG_DEFAULT_RADIO_POWER          0xc0
-#define AO_CONFIG_DEFAULT_FLIGHT_LOG_MAX       1024 * 1024
+#define AO_CONFIG_DEFAULT_FLIGHT_LOG_MAX       992 * 1024
 
 /*
  * GPS
 
 /*
  * GPS
index 5c58b34d75010b30a8bba75705fa548a40e8662e..da6f466bf71b1bcbf80ce6cf5cb5d3f2270a98e2 100644 (file)
@@ -75,7 +75,7 @@
 
 #define AO_CONFIG_DEFAULT_APRS_INTERVAL                0
 #define AO_CONFIG_DEFAULT_RADIO_POWER          0xc0
 
 #define AO_CONFIG_DEFAULT_APRS_INTERVAL                0
 #define AO_CONFIG_DEFAULT_RADIO_POWER          0xc0
-#define AO_CONFIG_DEFAULT_FLIGHT_LOG_MAX       1024 * 1024
+#define AO_CONFIG_DEFAULT_FLIGHT_LOG_MAX       992 * 1024
 
 /*
  * GPS
 
 /*
  * GPS