Make the ao_log_record structures 8 bytes again.
authorKeith Packard <keithp@keithp.com>
Thu, 3 Sep 2009 05:00:37 +0000 (22:00 -0700)
committerKeith Packard <keithp@keithp.com>
Thu, 3 Sep 2009 05:00:37 +0000 (22:00 -0700)
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>
src/ao.h
src/ao_gps_report.c

index 27ec010f68cd6ac42bb42822ee7496d59ee5a878..8e34255830ab7ca7032a3460beb8833045748e49 100644 (file)
--- 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;
index acf8bb4022552c8d43bd938fe256da22be177aa8..75c944f55378afa601e60464a4246cdb07d31f09 100644 (file)
@@ -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);
                        }
        }