summaryrefslogtreecommitdiff
path: root/src/kernel/ao_config.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-07-13 20:42:41 -0700
committerKeith Packard <keithp@keithp.com>2014-07-13 20:42:41 -0700
commit6c3d09bf40f2af6e8722f33a70b41e5d94ceaf9f (patch)
tree71a35cf9704adf71652cf7e9a5a82af135055391 /src/kernel/ao_config.c
parent5d1adc6775a66633661af747bc4176e06f97630f (diff)
altos: Interrupt radio receive when changing data rate
This aborts any pending radio receive when changing the data rate so that the radio can be reprogrammed to receive at the correct rate. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/kernel/ao_config.c')
-rw-r--r--src/kernel/ao_config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/kernel/ao_config.c b/src/kernel/ao_config.c
index 32a0967c..d73a3733 100644
--- a/src/kernel/ao_config.c
+++ b/src/kernel/ao_config.c
@@ -518,6 +518,9 @@ ao_config_radio_rate_set(void) __reentrant
ao_telemetry_reset_interval();
#endif
_ao_config_edit_finish();
+#if HAS_RADIO_RECV
+ ao_radio_recv_abort();
+#endif
}
#endif