altoslib: Correct tick wrapping in eeprom file reading
authorKeith Packard <keithp@keithp.com>
Tue, 3 Sep 2013 23:32:37 +0000 (17:32 -0600)
committerKeith Packard <keithp@keithp.com>
Tue, 3 Sep 2013 23:32:37 +0000 (17:32 -0600)
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>
altoslib/AltosEepromIterable.java

index 8e6a23139d4d5a5a000e0c6978f0b55054880276..1e0f7f7570b7ac8b30e9f556fdf6997d3367c40b 100644 (file)
@@ -73,7 +73,9 @@ class AltosEepromOrderedIterator implements Iterator<AltosEeprom> {
                                tick = t;
                        }
                        olist.add(new AltosEepromOrdered(e, index++, tick));
                                tick = t;
                        }
                        olist.add(new AltosEepromOrdered(e, index++, tick));
+                       first = false;
                }
                }
+
                oiterator = olist.iterator();
        }
 
                oiterator = olist.iterator();
        }