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 9e14c221441096f77b2bcf943ed8c1fda5ee0c14..d0a4663352ff703718b0e4d27ab4834d42e2660d 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);
        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);
        printf("log-format       %u\n", ao_log_format);
 #endif
        printf("software-version %s\n", ao_version);
index 28854ab5a7887ff3765a894d32bfb70b3eaf17fd..a653bed2cead5d2dd32da3e19541cbd1e94bc950 100644 (file)
@@ -308,7 +308,7 @@ ao_config_radio_cal_set(void) __reentrant
        _ao_config_edit_finish();
 }
 
        _ao_config_edit_finish();
 }
 
-#if HAS_EEPROM && HAS_FLIGHT
+#if HAS_LOG
 void
 ao_config_log_show(void) __reentrant
 {
 void
 ao_config_log_show(void) __reentrant
 {
@@ -336,7 +336,7 @@ ao_config_log_set(void) __reentrant
                _ao_config_edit_finish();
        }
 }
                _ao_config_edit_finish();
        }
 }
-#endif /* HAS_EEPROM && HAS_FLIGHT */
+#endif /* HAS_LOG */
 
 #if HAS_IGNITE
 void
 
 #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 },
 #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
        { "l <size>\0Flight log size in kB",
          ao_config_log_set,            ao_config_log_show },
 #endif