From: Keith Packard Date: Tue, 26 Mar 2013 21:28:37 +0000 (-0700) Subject: altos: Fix config to not abort radio recv when no recv is available X-Git-Tag: altosdroid_v1.2-1~78 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=747114786512339211d4981a7828c8c6f1f46c20 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 --- 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