diff options
| author | Keith Packard <keithp@keithp.com> | 2012-08-24 00:27:13 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2012-08-24 00:27:13 -0700 |
| commit | 7a0ed0ff4192060854d69e640de2c30105eb2f62 (patch) | |
| tree | b46fb17c9aa12eb7f49e9d4402a5a2dff529b76d /src/cc1111 | |
| parent | 659c0cd3ee4b9581c12ac2cd1b4162bf07a921ce (diff) | |
altos: Disable telefire 'pad' listener when testing radio
Ensures that the radio testing won't block waiting for a firing mode
packet to arrive.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/cc1111')
| -rw-r--r-- | src/cc1111/ao_radio.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cc1111/ao_radio.c b/src/cc1111/ao_radio.c index 2071c47a..46b2362d 100644 --- a/src/cc1111/ao_radio.c +++ b/src/cc1111/ao_radio.c @@ -16,6 +16,9 @@ */ #include "ao.h" +#if HAS_PAD +#include <ao_pad.h> +#endif /* Values from SmartRF® Studio for: * @@ -485,6 +488,9 @@ ao_radio_test(void) #if PACKET_HAS_SLAVE ao_packet_slave_stop(); #endif +#if HAS_PAD + ao_pad_disable(); +#endif ao_radio_get(0xff); RFST = RFST_STX; radio_on = 1; @@ -501,6 +507,9 @@ ao_radio_test(void) #if HAS_MONITOR ao_monitor_enable(); #endif +#if HAS_PAD + ao_pad_enable(); +#endif } } |
