diff options
author | Keith Packard <keithp@keithp.com> | 2013-04-28 23:02:12 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-05-07 20:07:52 -0700 |
commit | f677a83348a9568679240ee9d731ab454f289831 (patch) | |
tree | 8a8bd51ae7cce01fac472fb33a653f0489e74f0d /src/drivers/ao_packet.c | |
parent | 0488cd9cffc837e99490a0761216bbc5847ff400 (diff) |
altos: Provide timeout value to ao_radio_recv
Instead of using ao_alarm around calls to ao_radio_recv, provide an
explicit timeout value as needed by radio functions with more
complicated system interaction than the cc1111. The timeout is 8 bits
of clock ticks.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/drivers/ao_packet.c')
-rw-r--r-- | src/drivers/ao_packet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/ao_packet.c b/src/drivers/ao_packet.c index 5a507478..802d4c90 100644 --- a/src/drivers/ao_packet.c +++ b/src/drivers/ao_packet.c @@ -62,7 +62,7 @@ ao_packet_recv(void) #ifdef AO_LED_GREEN ao_led_on(AO_LED_GREEN); #endif - dma_done = ao_radio_recv(&ao_rx_packet, sizeof (struct ao_packet_recv)); + dma_done = ao_radio_recv(&ao_rx_packet, sizeof (struct ao_packet_recv), 0); #ifdef AO_LED_GREEN ao_led_off(AO_LED_GREEN); #endif |