altosui: Correct megametrum eeprom filename date
authorKeith Packard <keithp@keithp.com>
Sun, 21 Oct 2012 20:02:40 +0000 (13:02 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 21 Oct 2012 20:02:40 +0000 (13:02 -0700)
Was fetching day-of-month from the year field

Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/AltosEepromDownload.java

index a5e99749d9c12cb25cd035af04398df4b30e1442..21b467401dce8dd6ddf7463488fc34f8a265d414 100644 (file)
@@ -283,7 +283,7 @@ public class AltosEepromDownload implements Runnable {
                                if (r.cmd == Altos.AO_LOG_GPS_TIME) {
                                        year = 2000 + r.data8(14);
                                        month = r.data8(15);
-                                       day = r.data8(14);
+                                       day = r.data8(16);
                                        want_file = true;
                                }