summaryrefslogtreecommitdiff
path: root/src/ao.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2010-08-26 23:37:29 -0700
committerKeith Packard <keithp@keithp.com>2010-08-26 23:37:29 -0700
commit68b2b66d7574dfd0bd5e3571b8ffad32ca5d2b73 (patch)
tree23e144c57c6f2193cb71feeb4848633a2853d44f /src/ao.h
parentaa6c27df5db6bdae59d00affccb891854a6caa18 (diff)
altos: mark gps date written only after it gets into eeprom
Data logging doesn't start until boost detect occurs. As the GPS date is only logged once, if that happens before logging is written to the flash, then the GPS date will never get saved. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao.h')
-rw-r--r--src/ao.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ao.h b/src/ao.h
index d289ced1..8db22799 100644
--- a/src/ao.h
+++ b/src/ao.h
@@ -564,6 +564,7 @@ struct ao_log_record {
uint8_t year;
uint8_t month;
uint8_t day;
+ uint8_t extra;
} gps_date;
struct {
uint16_t d0;
@@ -573,7 +574,7 @@ struct ao_log_record {
};
/* Write a record to the eeprom log */
-void
+uint8_t
ao_log_data(__xdata struct ao_log_record *log) __reentrant;
/* Flush the log */