diff --git a/cpu/mc1322x/tests/rftest-tx.c b/cpu/mc1322x/tests/rftest-tx.c index 28c46c6ee..13b1e367d 100644 --- a/cpu/mc1322x/tests/rftest-tx.c +++ b/cpu/mc1322x/tests/rftest-tx.c @@ -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 @@ -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);