cc2520: Busywait max 500ms before trying to send another packet

The 100ms wait was too short. After some debugging, the
packets were successfully sent after 250ms wait.

Change-Id: Ib367f8df81ed3039b041f1e7b46d8f562a0adcac
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2016-02-15 16:47:48 +02:00
commit 086dfc2c2a

View file

@ -74,6 +74,7 @@
#define WAIT_100ms 100
#define WAIT_1000ms 1000
#define WAIT_500ms 500
#define WAIT_200ms 200
#define WAIT_10ms 10
#define WAIT_1ms 1
@ -669,7 +670,7 @@ static int cc2520_transmit(struct net_buf *buf, unsigned short payload_len)
/* We wait until transmission has ended so that we get an
* accurate measurement of the transmission time.
*/
BUSYWAIT_UNTIL(!(status() & BIT(CC2520_TX_ACTIVE)), WAIT_100ms);
BUSYWAIT_UNTIL(!(status() & BIT(CC2520_TX_ACTIVE)), WAIT_500ms);
DBG("status 0x%x\n", status());