set timestamp packet attribute

This commit is contained in:
Mariano Alvira 2011-02-18 12:46:34 -05:00
parent a86a0fbe0e
commit 8f9cf50e55

View file

@ -156,6 +156,7 @@ int contiki_maca_read(void *buf, unsigned short bufsize) {
if((p->length) < bufsize) bufsize = (p->length);
memcpy(buf, (uint8_t *)(p->data + p->offset), bufsize);
packetbuf_set_attr(PACKETBUF_ATTR_LINK_QUALITY,p->lqi);
packetbuf_set_attr(PACKETBUF_ATTR_TIMESTAMP,p->rx_time);
#if CONTIKI_MACA_DEBUG
for( i = p->offset ; i < (bufsize + p->offset) ; i++) {
PRINTF(" %02x",p->data[i]);