Merge branch 'buttonbox' of git://git.gag.com/fw/altos into buttonbox
[fw/altos] / ao-tools / altosui / AltosTelemetryReader.java
index 03e694f8bc7dfef11338d43fba62d8e6dd0eacb9..ff02c7225c00762b1516e420edb778d7317fe89b 100644 (file)
@@ -50,14 +50,14 @@ class AltosTelemetryReader extends AltosFlightReader {
                serial.set_callsign(callsign);
        }
 
-       public AltosTelemetryReader (AltosDevice in_device) throws FileNotFoundException, IOException {
+       public AltosTelemetryReader (AltosDevice in_device)
+               throws FileNotFoundException, AltosSerialInUseException, IOException {
                device = in_device;
-               serial = new AltosSerial();
+               serial = new AltosSerial(device);
                log = new AltosLog(serial);
                name = device.getPath();
 
                telem = new LinkedBlockingQueue<AltosLine>();
                serial.add_monitor(telem);
-        serial.open(device);
        }
 }