From 4132ac5896114e5f3d8fb3f219422e8933078cf4 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 5 Jul 2011 21:41:44 -0700 Subject: altosui: Parse remaining standard telemetry packets Signed-off-by: Keith Packard --- altosui/AltosLog.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'altosui/AltosLog.java') diff --git a/altosui/AltosLog.java b/altosui/AltosLog.java index 64275f32..855ee2b4 100644 --- a/altosui/AltosLog.java +++ b/altosui/AltosLog.java @@ -82,7 +82,9 @@ class AltosLog implements Runnable { continue; try { AltosRecord telem = AltosTelemetry.parse(line.line, previous); - if (telem.serial != serial || telem.flight != flight || log_file == null) { + if (telem.serial != 0 && telem.flight != 0 && + (telem.serial != serial || telem.flight != flight || log_file == null)) + { close_log_file(); serial = telem.serial; flight = telem.flight; -- cgit v1.2.3