Added contentiondrop rimestats when a packet couldn't be sent because of failing CCA check
This commit is contained in:
parent
bb9e35c79e
commit
c5d79e8aea
1 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@
|
||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* @(#)$Id: simple-cc2420.c,v 1.13 2007/10/25 13:29:21 adamdunkels Exp $
|
* @(#)$Id: simple-cc2420.c,v 1.14 2007/11/12 22:26:03 adamdunkels Exp $
|
||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
* This code is almost device independent and should be easy to port.
|
* This code is almost device independent and should be easy to port.
|
||||||
|
@ -311,7 +311,7 @@ simple_cc2420_send(const u8_t *payload, u16_t payload_len)
|
||||||
return 0; /* Transmission has started. */
|
return 0; /* Transmission has started. */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
RIMESTATS_ADD(contentiondrop);
|
||||||
PRINTF("simple_cc2420: do_send() transmission never started\n");
|
PRINTF("simple_cc2420: do_send() transmission never started\n");
|
||||||
RELEASE_LOCK();
|
RELEASE_LOCK();
|
||||||
return -3; /* Transmission never started! */
|
return -3; /* Transmission never started! */
|
||||||
|
|
Loading…
Reference in a new issue