altosui: Fix more calls to AltosPreferences.channel()
[fw/altos] / ao-tools / altosui / AltosConfig.java
index 7b6cd78ce8cd9a7897fc533be2905c6a31d07021..7fecff0e3de580de168117398058df8f9d3def8e 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();