From: Keith Packard Date: Sat, 7 Apr 2012 07:21:03 +0000 (-0700) Subject: altosui: Radio channel gets set to zero by altos when frequency is set X-Git-Tag: 1.0.9.5~84 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=5569e4df50648a3ec131ba5e244da9b67d1a67db 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 --- 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()));