X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=ao-tools%2Faltosui%2FAltosTelemetryReader.java;h=6c5a93978c69a4156e0e44fe3b94b3ea7a9c92c0;hb=7811e6dfa6caf10251da7df7c24b98cdc3787892;hp=0b5509ebedb203a5dcc5057972cb815ba3a97fe5;hpb=16916be51d746b1e1057b3219e5bec8f8814259e;p=fw%2Faltos diff --git a/ao-tools/altosui/AltosTelemetryReader.java b/ao-tools/altosui/AltosTelemetryReader.java index 0b5509eb..6c5a9397 100644 --- a/ao-tools/altosui/AltosTelemetryReader.java +++ b/ao-tools/altosui/AltosTelemetryReader.java @@ -44,19 +44,18 @@ class AltosTelemetryReader extends AltosFlightReader { void set_channel(int channel) { serial.set_channel(channel); + AltosPreferences.set_channel(device.getSerial(), channel); } - void set_callsign(String callsign) { - 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(); + name = device.toShortString(); telem = new LinkedBlockingQueue(); + serial.set_radio(); serial.add_monitor(telem); } }