diff options
author | Keith Packard <keithp@keithp.com> | 2013-03-26 14:28:37 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-03-26 14:28:37 -0700 |
commit | 747114786512339211d4981a7828c8c6f1f46c20 (patch) | |
tree | 669a3e078976aa2ec0ac117e38050f97a3394a64 | |
parent | 237e853b820b01409562b93b82684e5147286806 (diff) |
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 <keithp@keithp.com>
-rw-r--r-- | src/core/ao_config.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 |