diff options
author | Keith Packard <keithp@keithp.com> | 2014-08-17 20:59:45 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-08-17 20:59:45 -0700 |
commit | bb7522acf040f41740ecd059e3d5d2480b652420 (patch) | |
tree | 9c174cdac4493d3e2ab0fdec0ca065df0d25f2ed /src/kernel/ao_config.h | |
parent | 1530c24cc75cdf9ba87c7e153ff28bf7beb4384c (diff) |
telegps-v1.0: Provide one log and append to it
Instead of creating per-flight logs, create a single log and append
data to it each time TeleGPS is powered on. This avoids potentially
running out of log space just because the device is powered off/on.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/kernel/ao_config.h')
-rw-r--r-- | src/kernel/ao_config.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/kernel/ao_config.h b/src/kernel/ao_config.h index a650ffc6..0be3e14d 100644 --- a/src/kernel/ao_config.h +++ b/src/kernel/ao_config.h @@ -28,6 +28,10 @@ #define USE_EEPROM_CONFIG 0 #endif +#ifndef FLIGHT_LOG_APPEND +#define FLIGHT_LOG_APPEND 0 +#endif + #if USE_STORAGE_CONFIG #include <ao_storage.h> @@ -147,6 +151,9 @@ void ao_config_set_radio(void); void +ao_config_log_fix_append(void); + +void ao_config_init(void); #endif /* _AO_CONFIG_H_ */ |