altos: Make cc1120 driver wait for TX finished
authorKeith Packard <keithp@keithp.com>
Mon, 29 Apr 2013 06:03:57 +0000 (23:03 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 29 Apr 2013 06:03:57 +0000 (23:03 -0700)
commit370d42ab1446d025bf0de466fdada3ee3d533009
tree63a83501e94f23fe26cd654a3d385c95b3f503a4
parent582c62572c7cd3acb4856117821239a6a10843ef
altos: Make cc1120 driver wait for TX finished

Otherwise, we may come in and try to use the radio again too quickly,
causing it to go into a TX fifo error state.

This change watches the MARC status until the transmitter is
explicitly marked as finished.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_cc1120.c