mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-09-09 23:54:32 +00:00
discard received packets --- this lets you run multiple rftest-tx's at
the same time.
This commit is contained in:
parent
e00349509d
commit
8b2ef2675d
@ -30,7 +30,7 @@
|
|||||||
* This file is part of libmc1322x: see http://mc1322x.devl.org
|
* This file is part of libmc1322x: see http://mc1322x.devl.org
|
||||||
* for details.
|
* for details.
|
||||||
*
|
*
|
||||||
* $Id: rftest-tx.c,v 1.1 2010/06/10 14:55:39 maralvira Exp $
|
* $Id: rftest-tx.c,v 1.2 2010/11/07 14:10:16 maralvira Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <mc1322x.h>
|
#include <mc1322x.h>
|
||||||
@ -93,6 +93,10 @@ void main(void) {
|
|||||||
/* a few lockup conditions */
|
/* a few lockup conditions */
|
||||||
check_maca();
|
check_maca();
|
||||||
|
|
||||||
|
while((p = rx_packet())) {
|
||||||
|
if(p) free_packet(p);
|
||||||
|
}
|
||||||
|
|
||||||
p = get_free_packet();
|
p = get_free_packet();
|
||||||
if(p) {
|
if(p) {
|
||||||
fill_packet(p);
|
fill_packet(p);
|
||||||
|
Loading…
Reference in New Issue
Block a user