projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altosui: Deal with serial port exceptions a bit better
[fw/altos]
/
altosui
/
AltosTelemetryRecordRaw.java
diff --git
a/altosui/AltosTelemetryRecordRaw.java
b/altosui/AltosTelemetryRecordRaw.java
index 39b2ba0772a2d3efdf56d897023ce5bd3718402c..fb2b495cdb2e281792bff6784b14c48fd9338edd 100644
(file)
--- a/
altosui/AltosTelemetryRecordRaw.java
+++ b/
altosui/AltosTelemetryRecordRaw.java
@@
-143,11
+143,9
@@
public class AltosTelemetryRecordRaw implements AltosTelemetryRecord {
public AltosRecord update_state(AltosRecord previous) {
AltosRecord next;
public AltosRecord update_state(AltosRecord previous) {
AltosRecord next;
- if (previous != null)
{
+ if (previous != null)
next = new AltosRecord(previous);
next = new AltosRecord(previous);
- while (tick < previous.tick)
- tick += 65536;
- } else
+ else
next = new AltosRecord();
next.serial = serial;
next.tick = tick;
next = new AltosRecord();
next.serial = serial;
next.tick = tick;