diff options
author | Keith Packard <keithp@keithp.com> | 2011-08-27 13:27:28 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-08-27 13:27:28 -0700 |
commit | 8a1cbef0e316e38c80b71d3bac15641fe56e0a99 (patch) | |
tree | 52b25dbb959474211794a377d6982ecd7be9940f /src | |
parent | 6afbc1876cd63f64e8975e300692f95a43866f5f (diff) |
altos: Add HAS_LOG for products that log to eeprom
Some products have eeprom for config, but none for logging (like telelaunch)
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/core/ao_cmd.c | 2 | ||||
-rw-r--r-- | src/core/ao_config.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/core/ao_cmd.c b/src/core/ao_cmd.c index 9e14c221..d0a46633 100644 --- a/src/core/ao_cmd.c +++ b/src/core/ao_cmd.c @@ -237,7 +237,7 @@ version(void) printf("manufacturer %s\n", ao_manufacturer); printf("product %s\n", ao_product); printf("serial-number %u\n", ao_serial_number); -#if HAS_EEPROM +#if HAS_LOG printf("log-format %u\n", ao_log_format); #endif printf("software-version %s\n", ao_version); diff --git a/src/core/ao_config.c b/src/core/ao_config.c index 28854ab5..a653bed2 100644 --- a/src/core/ao_config.c +++ b/src/core/ao_config.c @@ -308,7 +308,7 @@ ao_config_radio_cal_set(void) __reentrant _ao_config_edit_finish(); } -#if HAS_EEPROM && HAS_FLIGHT +#if HAS_LOG void ao_config_log_show(void) __reentrant { @@ -336,7 +336,7 @@ ao_config_log_set(void) __reentrant _ao_config_edit_finish(); } } -#endif /* HAS_EEPROM && HAS_FLIGHT */ +#endif /* HAS_LOG */ #if HAS_IGNITE void @@ -482,7 +482,7 @@ __code struct ao_config_var ao_config_vars[] = { #endif /* HAS_ACCEL */ { "f <cal>\0Radio calib (cal = rf/(xtal/2^16))", ao_config_radio_cal_set, ao_config_radio_cal_show }, -#if HAS_EEPROM && HAS_FLIGHT +#if HAS_LOG { "l <size>\0Flight log size in kB", ao_config_log_set, ao_config_log_show }, #endif |