discard received packets --- this lets you run multiple rftest-tx's at

the same time.
This commit is contained in:
maralvira 2010-11-07 14:10:16 +00:00
parent e00349509d
commit 8b2ef2675d

View File

@ -30,7 +30,7 @@
* This file is part of libmc1322x: see http://mc1322x.devl.org
* 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>
@ -93,6 +93,10 @@ void main(void) {
/* a few lockup conditions */
check_maca();
while((p = rx_packet())) {
if(p) free_packet(p);
}
p = get_free_packet();
if(p) {
fill_packet(p);