altosui: Fix channel setting at serial open time
authorKeith Packard <keithp@keithp.com>
Tue, 9 Nov 2010 06:10:46 +0000 (22:10 -0800)
committerKeith Packard <keithp@keithp.com>
Tue, 9 Nov 2010 06:10:46 +0000 (22:10 -0800)
Was using the previous non-device-specific preferences API.

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

index f65e44d6eb1dac84653b5f325d04f66d2e4cae98..d6848e57b6419c86ce8a32ff97e1399c5a4fc2a5 100644 (file)
@@ -193,7 +193,7 @@ public class AltosSerial implements Runnable {
                print("~\nE 0\n");
                flush_output();
                set_monitor(monitor_mode);
                print("~\nE 0\n");
                flush_output();
                set_monitor(monitor_mode);
-               set_channel(AltosPreferences.channel());
+               set_channel(AltosPreferences.channel(device.getSerial()));
                set_callsign(AltosPreferences.callsign());
        }
 
                set_callsign(AltosPreferences.callsign());
        }