diff options
| author | Keith Packard <keithp@keithp.com> | 2010-11-23 19:09:31 -0800 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2010-11-23 19:10:27 -0800 |
| commit | f3233985a132e1d660e6df12d0056b6729f16faf (patch) | |
| tree | c260b1ca00c3234a1649d24e624fcca0c7c46748 /ao-tools/altosui/AltosConfig.java | |
| parent | 6cd9be22f06f21d12ee2f668989d83d3c61d14c0 (diff) | |
altosui: Disable radio configation over packet link.
Attempting to configure the radio over the packet link will only end
up confusing the user, so disable it. This also works around a bug in
older TM code which would lock up when trying to do this.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/altosui/AltosConfig.java')
| -rw-r--r-- | ao-tools/altosui/AltosConfig.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ao-tools/altosui/AltosConfig.java b/ao-tools/altosui/AltosConfig.java index 52dbfd79..b1acd410 100644 --- a/ao-tools/altosui/AltosConfig.java +++ b/ao-tools/altosui/AltosConfig.java @@ -149,7 +149,7 @@ public class AltosConfig implements Runnable, ActionListener { } void init_ui () throws InterruptedException, TimeoutException { - config_ui = new AltosConfigUI(owner); + config_ui = new AltosConfigUI(owner, remote); config_ui.addActionListener(this); set_ui(); } @@ -191,8 +191,10 @@ public class AltosConfig implements Runnable, ActionListener { start_serial(); serial_line.printf("c m %d\n", main_deploy.get()); serial_line.printf("c d %d\n", apogee_delay.get()); - serial_line.printf("c r %d\n", radio_channel.get()); - serial_line.printf("c f %d\n", radio_calibration.get()); + if (!remote) { + serial_line.printf("c r %d\n", radio_channel.get()); + serial_line.printf("c f %d\n", radio_calibration.get()); + } serial_line.printf("c c %s\n", callsign.get()); serial_line.printf("c w\n"); } catch (InterruptedException ie) { |
