altosui: Radio channel gets set to zero by altos when frequency is set
authorKeith Packard <keithp@keithp.com>
Sat, 7 Apr 2012 07:21:03 +0000 (00:21 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 7 Apr 2012 07:21:03 +0000 (00:21 -0700)
Just remember what the channe is going to get set to.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/AltosConfig.java

index 8eb71e1f8bb3b3d380ae3e2fa8e8426ddf987b3f..bb2665c2876eb7c1af9332614557fa47920f965e 100644 (file)
@@ -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()));