diff options
| author | Keith Packard <keithp@keithp.com> | 2011-11-12 18:47:08 -0800 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2011-11-12 18:47:08 -0800 | 
| commit | 20282ef00afe70e3f3193f6f0200254cb2c33e93 (patch) | |
| tree | 6bda0cfd953173b98dc87056dd4306333d162759 /src | |
| parent | 5972c642f0de0789e90268bfa19ef8b51c06eebc (diff) | |
altos: Set default flight log max to 127k on TM v0.1
The flash part on v0.1 boards is only 128kB.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/cc1111/ao_pins.h | 1 | ||||
| -rw-r--r-- | src/core/ao_config.c | 2 | 
2 files changed, 3 insertions, 0 deletions
| diff --git a/src/cc1111/ao_pins.h b/src/cc1111/ao_pins.h index 2b6232a4..ca85c39f 100644 --- a/src/cc1111/ao_pins.h +++ b/src/cc1111/ao_pins.h @@ -199,6 +199,7 @@  	#define HAS_ACCEL		1  	#define HAS_IGNITE		1  	#define HAS_MONITOR		0 +	#define AO_CONFIG_DEFAULT_FLIGHT_LOG_MAX	((uint32_t) 127 * (uint32_t) 1024)  #endif  #if defined(TELEDONGLE_V_0_1) diff --git a/src/core/ao_config.c b/src/core/ao_config.c index f0a576ee..921a2480 100644 --- a/src/core/ao_config.c +++ b/src/core/ao_config.c @@ -34,11 +34,13 @@ __xdata uint8_t ao_config_mutex;  #error Please define USE_INTERNAL_FLASH  #endif  #endif +#ifndef AO_CONFIG_DEFAULT_FLIGHT_LOG_MAX  #if USE_INTERNAL_FLASH  #define AO_CONFIG_DEFAULT_FLIGHT_LOG_MAX	ao_storage_config  #else  #define AO_CONFIG_DEFAULT_FLIGHT_LOG_MAX	((uint32_t) 192 * (uint32_t) 1024)  #endif +#endif  #if HAS_EEPROM  static void | 
