diff options
author | Keith Packard <keithp@keithp.com> | 2013-02-10 14:17:04 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-02-10 14:17:04 -0800 |
commit | c2701ae646124f0668c5f2d1df3fc80f0075a9d7 (patch) | |
tree | 6b29d8d8f76ed58b13cd3d0796fcca5889731767 /altoslib/AltosLink.java | |
parent | cc0ea39fee73417ecd69c020d9eca723ebb2cf65 (diff) |
altosui: Interrupt MonitorIdle when changing frequency/callsign
When switching radio parameters, the local device needs to have the
parameters switched, so interrupt the current operation and start
over, the frequency and callsign will be set the next time through.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altoslib/AltosLink.java')
-rw-r--r-- | altoslib/AltosLink.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/altoslib/AltosLink.java b/altoslib/AltosLink.java index 2b5909aa..9eb25ce0 100644 --- a/altoslib/AltosLink.java +++ b/altoslib/AltosLink.java @@ -249,6 +249,7 @@ public abstract class AltosLink implements Runnable { public boolean monitor_mode = false; public int telemetry = AltosLib.ao_telemetry_standard; public double frequency; + public String callsign; AltosConfigData config_data; private int telemetry_len() { @@ -330,6 +331,7 @@ public abstract class AltosLink implements Runnable { } public void set_callsign(String callsign) { + this.callsign = callsign; printf ("c c %s\n", callsign); flush_output(); } @@ -363,5 +365,6 @@ public abstract class AltosLink implements Runnable { } public AltosLink() { + callsign = ""; } } |