altos: Set default flight log max to 127k on TM v0.1
authorKeith Packard <keithp@keithp.com>
Sun, 13 Nov 2011 02:47:08 +0000 (18:47 -0800)
committerKeith Packard <keithp@keithp.com>
Sun, 13 Nov 2011 02:47:08 +0000 (18:47 -0800)
The flash part on v0.1 boards is only 128kB.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/cc1111/ao_pins.h
src/core/ao_config.c

index 2b6232a4bd7527d4f27f1507c8a9f31308b6d682..ca85c39fbe4aa793d1254eb79c296463de8f775f 100644 (file)
        #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)
index f0a576ee9692289b0784ba9e62a232fb1ab910fc..921a248065a25d130e27c10799e2dc3dc9c3c41e 100644 (file)
@@ -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