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:
parent
a63f175d44
commit
086dfc2c2a
1 changed files with 2 additions and 1 deletions
|
@ -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());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue