altos/altosui: Log averaged baro sensor data in Tm/Tn
[fw/altos] / altosui / AltosEepromDownload.java
index a03d2b43c952e963cc470a947c25c9bce0c268ec..a42f401c50654d1683e903e29f27764b6960e7d4 100644 (file)
@@ -162,7 +162,8 @@ public class AltosEepromDownload implements Runnable {
                                } else {
                                        if (v != 0xffff)
                                                any_valid = true;
-                                       r = new AltosEepromRecord(Altos.AO_LOG_HEIGHT, tiny_tick, v, 0);
+
+                                       r = new AltosEepromRecord(Altos.AO_LOG_PRESSURE, tiny_tick, 0, v);
 
                                        /*
                                         * The flight software records ascent data every 100ms, and descent
@@ -328,6 +329,7 @@ public class AltosEepromDownload implements Runnable {
 
                frame = given_frame;
                serial_line = given_serial_line;
+               serial_line.set_frame(frame);
                remote = given_remote;
                flights = given_flights;
                success = false;