altos: Clear any broken cc1120 TX fifo bits before transmitting
authorKeith Packard <keithp@keithp.com>
Mon, 29 Apr 2013 06:05:18 +0000 (23:05 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 29 Apr 2013 06:05:18 +0000 (23:05 -0700)
commit1c091062696f541168b91fcfa18ed25519aa6fe5
tree068d8ebc434e6404cb4aad6c4488a8bba60cd42f
parent370d42ab1446d025bf0de466fdada3ee3d533009
altos: Clear any broken cc1120 TX fifo bits before transmitting

This just goes and clears the transmitter before using it, just in
case it got wedged somehow. It also clears the bits while waiting for
the radio to go idle, otherwise it'd never make it.

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