altos: Add HAS_LOG for products that log to eeprom
authorKeith Packard <keithp@keithp.com>
Sat, 27 Aug 2011 20:27:28 +0000 (13:27 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 27 Aug 2011 20:27:28 +0000 (13:27 -0700)
Some products have eeprom for config, but none for logging (like telelaunch)

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

index 9e14c22..d0a4663 100644 (file)
@@ -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);
index 28854ab..a653bed 100644 (file)
@@ -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