From a0a650a2be007b0436bd527d6c18f36eef6fbe2b Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sat, 7 Apr 2012 00:25:50 -0700 Subject: [PATCH] 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 --- src/core/ao_config.c | 1 + 1 file changed, 1 insertion(+) 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(); -- 2.30.2