diff options
author | Keith Packard <keithp@keithp.com> | 2010-06-21 15:53:33 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-06-21 15:53:33 -0700 |
commit | 52834517c0706b1f16fb81643a42dc1c1997e00a (patch) | |
tree | e84da4b5cfa3b67672808284c16a2de53d313504 /src | |
parent | 5933eaa44fe45027b856f1303dd657b974eb53e7 (diff) |
Abort any in-progress radio operation when changing radio channel
In monitor mode, the current receive operation must be aborted so that
the radio channel change can take effect without receiving a
telemetry packet on the old channel. Aborting any in-progress radio
operation will make sure that happens.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/ao_config.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ao_config.c b/src/ao_config.c index 8df994a6..cbd639a5 100644 --- a/src/ao_config.c +++ b/src/ao_config.c @@ -151,6 +151,7 @@ ao_config_radio_channel_set(void) __reentrant ao_config_dirty = 1; ao_mutex_put(&ao_config_mutex); ao_config_radio_channel_show(); + ao_radio_abort(); } #if HAS_ADC |