altos: Correct flight log max on Tm to 5k
authorKeith Packard <keithp@keithp.com>
Mon, 8 Aug 2011 18:58:23 +0000 (11:58 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 8 Aug 2011 19:13:02 +0000 (12:13 -0700)
Was using the wrong #define name to check for Tm/Tn devices that use
internal flash for data storage.

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

index 215dda92c5943ba6d64fcbed490a950eff58f894..c4d808901a2a2b8638a8e7a3d10960a238656ce1 100644 (file)
@@ -29,7 +29,12 @@ __xdata uint8_t ao_config_mutex;
 #define AO_CONFIG_DEFAULT_APOGEE_DELAY 0
 #define AO_CONFIG_DEFAULT_IGNITE_MODE  AO_IGNITE_MODE_DUAL
 #define AO_CONFIG_DEFAULT_PAD_ORIENTATION      AO_PAD_ORIENTATION_ANTENNA_UP
-#if USE_INTERNAL_EEPROM
+#if HAS_EEPROM
+#ifndef USE_INTERNAL_FLASH
+#error Please define USE_INTERNAL_FLASH
+#endif
+#endif
+#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)