altos: Fix config to not abort radio recv when no recv is available
authorKeith Packard <keithp@keithp.com>
Tue, 26 Mar 2013 21:28:37 +0000 (14:28 -0700)
committerKeith Packard <keithp@keithp.com>
Tue, 26 Mar 2013 21:28:37 +0000 (14:28 -0700)
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>
src/core/ao_config.c

index 0aac16a678ad1a6296bb1c4278bf5985bfbc0576..9c84fe60974dcf70be41a5c33ca85f2319243e2f 100644 (file)
@@ -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