altosui: Deal with telem data that goes backwards in time
[fw/altos] / altosui / AltosTelemetryRecordRaw.java
index 39b2ba0772a2d3efdf56d897023ce5bd3718402c..fb2b495cdb2e281792bff6784b14c48fd9338edd 100644 (file)
@@ -143,11 +143,9 @@ public class AltosTelemetryRecordRaw implements AltosTelemetryRecord {
 
        public AltosRecord update_state(AltosRecord previous) {
                AltosRecord     next;
-               if (previous != null) {
+               if (previous != null)
                        next = new AltosRecord(previous);
-                       while (tick < previous.tick)
-                               tick += 65536;
-               } else
+               else
                        next = new AltosRecord();
                next.serial = serial;
                next.tick = tick;