Use ao_radio_get/ao_radio_put in packet code.
authorKeith Packard <keithp@keithp.com>
Sat, 19 Dec 2009 19:34:16 +0000 (11:34 -0800)
committerKeith Packard <keithp@keithp.com>
Sat, 19 Dec 2009 19:35:35 +0000 (11:35 -0800)
commit10d1bbcd9709a5eee8d50989215242b16feb7232
tree7de1577d347a3bb7d58208d3a7b973c860b16264
parenta15abc1882a3bdd2c980eed169f3b80337528390
Use ao_radio_get/ao_radio_put in packet code.

The ao_radio_get function both acquires the mutex *and* configures the
radio channel and frequency. Failing to use this in the packet code
would leave the radio frequency unconfigured.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/ao.h
src/ao_packet.c
src/ao_radio.c