altosui: Add progress bar for eeprom downloading status
[fw/altos] / ao-tools / altosui / AltosUI.java
index 511c37093539fee08e7840862bc15e03088a807d..863d173e530a731e2ecb3ba94a73f2eec8eadaab 100644 (file)
@@ -474,7 +474,6 @@ public class AltosUI extends JFrame {
                void close() {
                        serial.close();
                        serial.remove_monitor(telem);
-                       System.out.println("DisplayThread done");
                }
 
                public DeviceThread(AltosSerial s) {
@@ -614,6 +613,7 @@ public class AltosUI extends JFrame {
         * a TeleDongle over the packet link
         */
        private void SaveFlightData() {
+               new AltosEeprom(AltosUI.this);
        }
 
        /* Create the AltosUI menus
@@ -721,6 +721,13 @@ public class AltosUI extends JFrame {
                                        }
                                });
                        menu.add(radioitem);
+                       item = new JMenuItem("Test Voice",KeyEvent.VK_T);
+                       item.addActionListener(new ActionListener() {
+                                       public void actionPerformed(ActionEvent e) {
+                                               voice.speak("That's one small step for man; one giant leap for mankind.");
+                                       }
+                               });
+                       menu.add(item);
                }
 
                // Channel menu