altosui: Fix more calls to AltosPreferences.channel()
authorKeith Packard <keithp@keithp.com>
Tue, 9 Nov 2010 06:17:26 +0000 (22:17 -0800)
committerKeith Packard <keithp@keithp.com>
Tue, 9 Nov 2010 06:17:26 +0000 (22:17 -0800)
Oops. Two more.

Signed-off-by: Keith Packard <keithp@keithp.com>
ao-tools/altosui/AltosConfig.java
ao-tools/altosui/AltosEepromDownload.java

index 7b6cd78..7fecff0 100644 (file)
@@ -122,7 +122,7 @@ public class AltosConfig implements Runnable, ActionListener {
 
        void start_serial() throws InterruptedException {
                if (remote) {
-                       serial_line.set_channel(AltosPreferences.channel());
+                       serial_line.set_channel(AltosPreferences.channel(device.getSerial()));
                        serial_line.set_callsign(AltosPreferences.callsign());
                        serial_line.printf("p\n");
                        serial_line.flush_input();
index a7f6490..8efc94d 100644 (file)
@@ -224,7 +224,7 @@ public class AltosEepromDownload implements Runnable {
 
        public void run () {
                if (remote) {
-                       serial_line.set_channel(AltosPreferences.channel());
+                       serial_line.set_channel(AltosPreferences.channel(device.getSerial()));
                        serial_line.set_callsign(AltosPreferences.callsign());
                        serial_line.printf("p\nE 0\n");
                        serial_line.flush_input();