summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2010-09-09 23:04:14 -0700
committerKeith Packard <keithp@keithp.com>2010-09-09 23:07:16 -0700
commit67b6952f7126704478ede5575e5e938d18fcc329 (patch)
treeb62137a679de13828a1ad84b2dc4b65e185c4635
parent8b0b584cd0ca7542e65aac0c7897ad7ab4115122 (diff)
altosui: Fill in time value of last Eeprom record read from file
The last record is handled separately, and was missing the code to compute the time. Sigh. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--ao-tools/altosui/AltosEepromReader.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/ao-tools/altosui/AltosEepromReader.java b/ao-tools/altosui/AltosEepromReader.java
index cb82f9a9..f1d6a6a7 100644
--- a/ao-tools/altosui/AltosEepromReader.java
+++ b/ao-tools/altosui/AltosEepromReader.java
@@ -114,7 +114,9 @@ public class AltosEepromReader extends AltosReader {
if (last_reported)
return null;
last_reported = true;
- return new AltosRecord(state);
+ AltosRecord r = new AltosRecord(state);
+ r.time = (r.tick - boost_tick) / 100.0;
+ return r;
}
record = record_iterator.next();