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>
Wed, 8 May 2013 03:07:52 +0000 (20:07 -0700)
commitb878ca38045b1bee6ea4d649298727ac3fa197c2
treeeb15d0a4adda6d85c3d7fa0634a71dcb6f98e234
parentf677a83348a9568679240ee9d731ab454f289831
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