altosui: Add low-level Bluetooth APIs
[fw/altos] / altosui / AltosEepromDownload.java
index a03d2b43c952e963cc470a947c25c9bce0c268ec..5c7049683008fc8107c0fdd0d1191130b43838e0 100644 (file)
@@ -158,6 +158,7 @@ public class AltosEepromDownload implements Runnable {
                                        r = new AltosEepromRecord(Altos.AO_LOG_STATE, tiny_tick, s, 0);
                                        if (s == Altos.ao_flight_landed)
                                                done = true;
+                                       state = s;
                                        any_valid = true;
                                } else {
                                        if (v != 0xffff)
@@ -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;