diff options
| author | Keith Packard <keithp@keithp.com> | 2011-07-05 21:41:44 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2011-07-05 21:41:44 -0700 | 
| commit | 4132ac5896114e5f3d8fb3f219422e8933078cf4 (patch) | |
| tree | b94126adde7a026467eee3bc91031d1ecbcf03c9 /altosui/AltosLog.java | |
| parent | ef3ce687d73c1274ce5368432f4d449b063ce5c0 (diff) | |
altosui: Parse remaining standard telemetry packets
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosLog.java')
| -rw-r--r-- | altosui/AltosLog.java | 4 | 
1 files changed, 3 insertions, 1 deletions
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;  | 
