altosui & altoslib: Move a pile of debug/programming bits to altoslib
[fw/altos] / altosui / AltosFlash.java
index 239d4dd77c9c6ddd0ef35b0660b4c9a6ac57d86c..b409a611bb926590c182e14362ee8a185290c344 100644 (file)
@@ -20,6 +20,7 @@ package altosui;
 import java.awt.event.*;
 import javax.swing.*;
 import java.io.*;
+import org.altusmetrum.altoslib_1.*;
 import org.altusmetrum.altosuilib_1.*;
 
 public class AltosFlash {
@@ -362,7 +363,7 @@ public class AltosFlash {
                file = in_file;
                debug_dongle = in_debug_dongle;
                if (debug_dongle != null)
-                       debug = new AltosDebug(in_debug_dongle);
+                       debug = new AltosDebug(new AltosSerial(in_debug_dongle));
                input = new FileInputStream(file);
                image = new AltosHexfile(input);
                if (debug != null && !debug.check_connection()) {