altos: Force radio channel to zero when setting frequency
authorKeith Packard <keithp@keithp.com>
Sat, 7 Apr 2012 07:25:50 +0000 (00:25 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 7 Apr 2012 07:25:50 +0000 (00:25 -0700)
Otherwise, the actual radio frequency will include the channel offset,
which is not useful.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/core/ao_config.c

index 1dafab8dc0a5b8bdbe4a0063b9e7cbc345765537..2d3d2870459715838f3bbdb8fcdd69b269b3d821 100644 (file)
@@ -218,6 +218,7 @@ ao_config_frequency_set(void) __reentrant
                return;
        _ao_config_edit_start();
        ao_config.frequency = ao_cmd_lex_u32;
+       ao_config.radio_channel = 0;
        ao_config_set_radio();
        _ao_config_edit_finish();
        ao_radio_recv_abort();