From 5569e4df50648a3ec131ba5e244da9b67d1a67db Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sat, 7 Apr 2012 00:21:03 -0700 Subject: [PATCH] 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 --- altosui/AltosConfig.java | 1 + 1 file changed, 1 insertion(+) 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())); -- 2.30.2