]> git.gag.com Git - fw/altos/blobdiff - altosui/AltosUI.java
altosui: Move telemetry reader &c to altoslib
[fw/altos] / altosui / AltosUI.java
index 6a0a84fa1c85953c4cbd6c352e6473f5a1b27e27..125653d351e640b6ee20fe4cd523c279a7c17955 100644 (file)
@@ -27,6 +27,7 @@ import java.util.*;
 import java.text.*;
 import java.util.prefs.*;
 import java.util.concurrent.*;
+import org.altusmetrum.AltosLib.*;
 
 import libaltosJNI.*;
 
@@ -47,7 +48,7 @@ public class AltosUI extends AltosFrame {
 
        void telemetry_window(AltosDevice device) {
                try {
-                       AltosFlightReader reader = new AltosTelemetryReader(device);
+                       AltosFlightReader reader = new AltosTelemetryReader(new AltosSerial(device));
                        if (reader != null)
                                new AltosFlightUI(voice, reader, device.getSerial());
                } catch (FileNotFoundException ee) {