telegps: Add scan UI
[fw/altos] / altosui / AltosEepromManage.java
index 7a7211960b02545b197b238ebb9229a4c20f2df4..aa43ab9ee3c4f740187bc3f391f387b14ec54f19 100644 (file)
@@ -21,8 +21,8 @@ import java.awt.event.*;
 import javax.swing.*;
 import java.io.*;
 import java.util.concurrent.*;
-import org.altusmetrum.altoslib_1.*;
-import org.altusmetrum.altosuilib_1.*;
+import org.altusmetrum.altoslib_4.*;
+import org.altusmetrum.altosuilib_2.*;
 
 public class AltosEepromManage implements ActionListener {
 
@@ -133,11 +133,13 @@ public class AltosEepromManage implements ActionListener {
                                        for (AltosEepromLog flight : flights)
                                                any_selected = any_selected || flight.selected;
                                        if (any_selected) {
-                                               download = new AltosEepromDownload(frame,
+                                               AltosEepromMonitorUI monitor = new AltosEepromMonitorUI(frame);
+                                               monitor.addActionListener(this);
+                                               serial_line.set_frame(frame);
+                                               download = new AltosEepromDownload(monitor,
                                                                                   serial_line,
                                                                                   remote,
                                                                                   flights);
-                                               download.addActionListener(this);
                                                /*
                                                 * Start flight log download
                                                 */