altos: Time out reading packet data from cc1120 after 100ms
authorKeith Packard <keithp@keithp.com>
Fri, 11 Jan 2013 05:27:32 +0000 (21:27 -0800)
committerKeith Packard <keithp@keithp.com>
Fri, 11 Jan 2013 05:44:18 +0000 (21:44 -0800)
commitacff2f466031fd1a8533fc315411c3734a8bacc6
tree422038f3380f0f7e7cdb1febd7afbe9fc60c7b8a
parentf715b5da3424adacc5a7f1e001e1dd7fa6f50385
altos: Time out reading packet data from cc1120 after 100ms

Sometimes the radio will give a spurious wakeup indicating that a
preamble seems to have arrived, but no packet data will appear. In
this case, abandon the packet reception and go back to waiting for a
preamble again. This releases the SPI bus for other users and also
avoids missing packets.

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