From 747114786512339211d4981a7828c8c6f1f46c20 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 26 Mar 2013 14:28:37 -0700 Subject: [PATCH] altos: Fix config to not abort radio recv when no recv is available Use the new radio recv define to skip disabling the receiver when there isn't a receiver. Signed-off-by: Keith Packard --- src/core/ao_config.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/ao_config.c b/src/core/ao_config.c index 0aac16a6..9c84fe60 100644 --- a/src/core/ao_config.c +++ b/src/core/ao_config.c @@ -210,6 +210,7 @@ ao_config_callsign_set(void) __reentrant } #if HAS_RADIO + void ao_config_frequency_show(void) __reentrant { @@ -227,7 +228,9 @@ ao_config_frequency_set(void) __reentrant ao_config.frequency = ao_cmd_lex_u32; ao_config_set_radio(); _ao_config_edit_finish(); +#if HAS_RADIO_RECV ao_radio_recv_abort(); +#endif } #endif -- 2.30.2