summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-04-07 00:21:03 -0700
committerKeith Packard <keithp@keithp.com>2012-04-07 00:21:03 -0700
commit5569e4df50648a3ec131ba5e244da9b67d1a67db (patch)
treee47ba635400c15e0e778ee1b1c1900430e5f4afa
parent2db6b0f58811ffc44a468c8fbcacc08d37edd26c (diff)
altosui: Radio channel gets set to zero by altos when frequency is set
Just remember what the channe is going to get set to. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--altosui/AltosConfig.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/altosui/AltosConfig.java b/altosui/AltosConfig.java
index 8eb71e1f..bb2665c2 100644
--- a/altosui/AltosConfig.java
+++ b/altosui/AltosConfig.java
@@ -397,6 +397,7 @@ public class AltosConfig implements ActionListener {
if (frequency > 0) {
radio_frequency.set((int) Math.floor (freq * 1000 + 0.5));
+ radio_channel.set(0);
} else if (setting > 0) {
radio_setting.set(AltosConvert.radio_frequency_to_setting(freq,
radio_calibration.get()));