projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d1adc6
)
altos: Interrupt radio receive when changing data rate
author
Keith Packard
<keithp@keithp.com>
Mon, 14 Jul 2014 03:42:41 +0000
(20:42 -0700)
committer
Keith Packard
<keithp@keithp.com>
Mon, 14 Jul 2014 03:42:41 +0000
(20:42 -0700)
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>
src/kernel/ao_config.c
patch
|
blob
|
history
diff --git
a/src/kernel/ao_config.c
b/src/kernel/ao_config.c
index 32a0967c9808c7dcd4087b76c58178630baa30c2..d73a3733db1989bb95dbd1386d67114048c0ba76 100644
(file)
--- 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