micropeak: Use new libaltos entry point for FTDI devices
authorKeith Packard <keithp@keithp.com>
Sat, 5 Jan 2013 18:37:30 +0000 (10:37 -0800)
committerKeith Packard <keithp@keithp.com>
Sat, 5 Jan 2013 18:37:30 +0000 (10:37 -0800)
Signed-off-by: Keith Packard <keithp@keithp.com>
micropeak/MicroUSB.java

index 908ac51b6afbc1eff197f6ed5aa0149ce1aca580..f56d81d40b087fc5de6be346e800660fd821ab98 100644 (file)
@@ -50,7 +50,7 @@ public class MicroUSB extends altos_device implements AltosDevice {
                String  name = getName();
                if (name == null)
                        name = "Altus Metrum";
                String  name = getName();
                if (name == null)
                        name = "Altus Metrum";
-               return String.format("%-20.20s %s",
+               return String.format("%-24.24s %s",
                                     name, getPath());
        }
 
                                     name, getPath());
        }
 
@@ -90,7 +90,7 @@ public class MicroUSB extends altos_device implements AltosDevice {
                if (!load_library())
                        return null;
 
                if (!load_library())
                        return null;
 
-               SWIGTYPE_p_altos_list list = libaltos.altos_list_start();
+               SWIGTYPE_p_altos_list list = libaltos.altos_ftdi_list_start();
 
                ArrayList<MicroUSB> device_list = new ArrayList<MicroUSB>();
                if (list != null) {
 
                ArrayList<MicroUSB> device_list = new ArrayList<MicroUSB>();
                if (list != null) {