diff options
author | Keith Packard <keithp@keithp.com> | 2012-04-07 00:25:50 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-04-07 00:25:50 -0700 |
commit | a0a650a2be007b0436bd527d6c18f36eef6fbe2b (patch) | |
tree | e74431fb92b8e250c19000dbea1ab3bfec58fc72 /src | |
parent | c7119405a3dd7128120374a2a001bc98ef523619 (diff) |
altos: Force radio channel to zero when setting frequency
Otherwise, the actual radio frequency will include the channel offset,
which is not useful.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/core/ao_config.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/ao_config.c b/src/core/ao_config.c index 1dafab8d..2d3d2870 100644 --- a/src/core/ao_config.c +++ b/src/core/ao_config.c @@ -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(); |