diff options
author | Keith Packard <keithp@keithp.com> | 2013-09-03 17:32:37 -0600 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-09-03 17:32:37 -0600 |
commit | 999c3c7866613e658a6c26374499bc516bbc944d (patch) | |
tree | a0de6175c4e593fc41bc3f68dc3657f7aa8f3f40 | |
parent | 7d3af3d74f70a0933829be91ad3e3be04b1f1023 (diff) |
altoslib: Correct tick wrapping in eeprom file reading
Just need to signal that at least one record has been read to know
when to start checking for wrap
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | altoslib/AltosEepromIterable.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/altoslib/AltosEepromIterable.java b/altoslib/AltosEepromIterable.java index 8e6a2313..1e0f7f75 100644 --- a/altoslib/AltosEepromIterable.java +++ b/altoslib/AltosEepromIterable.java @@ -73,7 +73,9 @@ class AltosEepromOrderedIterator implements Iterator<AltosEeprom> { tick = t; } olist.add(new AltosEepromOrdered(e, index++, tick)); + first = false; } + oiterator = olist.iterator(); } |