summaryrefslogtreecommitdiff
path: root/src/core/ao_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ao_config.c')
-rw-r--r--src/core/ao_config.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/core/ao_config.c b/src/core/ao_config.c
index 0c10e608..ec2b61f6 100644
--- a/src/core/ao_config.c
+++ b/src/core/ao_config.c
@@ -47,7 +47,9 @@ _ao_config_put(void)
ao_storage_setup();
ao_storage_erase(ao_storage_config);
ao_storage_write(ao_storage_config, &ao_config, sizeof (ao_config));
+#if HAS_FLIGHT
ao_log_write_erase(0);
+#endif
ao_storage_flush();
}
@@ -301,7 +303,7 @@ ao_config_radio_cal_set(void) __reentrant
_ao_config_edit_finish();
}
-#if HAS_EEPROM
+#if HAS_EEPROM && HAS_FLIGHT
void
ao_config_log_show(void) __reentrant
{
@@ -329,7 +331,7 @@ ao_config_log_set(void) __reentrant
_ao_config_edit_finish();
}
}
-#endif /* HAS_EEPROM */
+#endif /* HAS_EEPROM && HAS_FLIGHT */
#if HAS_IGNITE
void
@@ -448,7 +450,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
+#if HAS_EEPROM && HAS_FLIGHT
{ "l <size>\0Flight log size in kB",
ao_config_log_set, ao_config_log_show },
#endif