Just remember what the channe is going to get set to.
Signed-off-by: Keith Packard <keithp@keithp.com>
if (frequency > 0) {
radio_frequency.set((int) Math.floor (freq * 1000 + 0.5));
if (frequency > 0) {
radio_frequency.set((int) Math.floor (freq * 1000 + 0.5));
} else if (setting > 0) {
radio_setting.set(AltosConvert.radio_frequency_to_setting(freq,
radio_calibration.get()));
} else if (setting > 0) {
radio_setting.set(AltosConvert.radio_frequency_to_setting(freq,
radio_calibration.get()));