- AltosTelemetry telem = new AltosTelemetry(line.line);
- if (telem.serial != serial || telem.flight != flight || log_file == null) {
+ AltosRecord telem = AltosTelemetry.parse(line.line, previous);
+ if (telem.serial != 0 && telem.flight != 0 &&
+ (telem.serial != serial || telem.flight != flight || log_file == null))
+ {