altos: Reset radio channel to zero when using radio setting
authorKeith Packard <keithp@keithp.com>
Sun, 14 Aug 2011 06:56:55 +0000 (23:56 -0700)
committerKeith Packard <keithp@keithp.com>
Sun, 14 Aug 2011 06:56:55 +0000 (23:56 -0700)
Otherwise, it's hard to set the frequency over the radio link.

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

index 36bd47c..331509e 100644 (file)
@@ -402,6 +402,7 @@ ao_config_radio_setting_set(void) __reentrant
        ao_mutex_get(&ao_config_mutex);
        _ao_config_get();
        ao_config.radio_setting = ao_cmd_lex_u32;
+       ao_config.radio_channel = 0;
        ao_config_dirty = 1;
        ao_mutex_put(&ao_config_mutex);
        ao_config_radio_setting_show();