- state = state.clone();
- telem.update_state(state);
- if (state.serial != serial || state.flight != flight || log_file == null)
+ if (state == null)
+ state = new AltosState(cal_data);
+ telem.provide_data(state, cal_data);
+
+ if (cal_data.serial != serial ||
+ cal_data.flight != flight ||
+ log_file == null)