altos: Switch ao_rssi.c __xdata to __pdata
[fw/altos] / altosui / AltosLog.java
index 64275f32e4a9868e4a336d6808babb3c11d94fe2..855ee2b4a724fd22963a02a54db3fd60b2a6b346 100644 (file)
@@ -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;