Bugfix: data that has been prepared with the prepare() method must be possible to send multiple times
This commit is contained in:
parent
432a3fd12e
commit
2a3d0dc042
|
@ -26,7 +26,7 @@
|
||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: cooja-radio.c,v 1.13 2010/03/23 15:10:27 adamdunkels Exp $
|
* $Id: cooja-radio.c,v 1.14 2010/03/23 15:19:55 adamdunkels Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -192,7 +192,6 @@ transmit_packet(unsigned short len)
|
||||||
int ret = RADIO_TX_ERR;
|
int ret = RADIO_TX_ERR;
|
||||||
if(pending_data != NULL) {
|
if(pending_data != NULL) {
|
||||||
ret = radio_send(pending_data, len);
|
ret = radio_send(pending_data, len);
|
||||||
pending_data = NULL;
|
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue