summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-09-02 22:00:37 -0700
committerKeith Packard <keithp@keithp.com>2009-09-02 22:00:37 -0700
commitacea083d80e1ecc4287083519ea666964016b257 (patch)
tree295582ae56deb7a993464f0a35036c8e76e14dc4 /src
parent7d39f17684feb49ac8a0017902158f298696e37c (diff)
Make the ao_log_record structures 8 bytes again.
When the GPS signal strength data was added, the structure was accidentally extended to 9 bytes, making all log records 9 bytes long. While not a serious problem, this left log records spanning across eeprom block boundaries, which seems like a bad plan. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r--src/ao.h1
-rw-r--r--src/ao_gps_report.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/src/ao.h b/src/ao.h
index 27ec010f..8e342558 100644
--- a/src/ao.h
+++ b/src/ao.h
@@ -503,7 +503,6 @@ struct ao_log_record {
uint16_t svid;
uint8_t state;
uint8_t c_n;
- uint8_t unused;
} gps_sat;
struct {
uint16_t d0;
diff --git a/src/ao_gps_report.c b/src/ao_gps_report.c
index acf8bb40..75c944f5 100644
--- a/src/ao_gps_report.c
+++ b/src/ao_gps_report.c
@@ -75,7 +75,6 @@ ao_gps_tracking_report(void)
(gps_log.u.gps_sat.state = gps_tracking_data.sats[c].state))
{
gps_log.u.gps_sat.c_n = gps_tracking_data.sats[c].c_n_1;
- gps_log.u.gps_sat.unused = 0;
ao_log_data(&gps_log);
}
}