set timestamp packet attribute
This commit is contained in:
parent
a86a0fbe0e
commit
8f9cf50e55
1 changed files with 1 additions and 0 deletions
|
@ -156,6 +156,7 @@ int contiki_maca_read(void *buf, unsigned short bufsize) {
|
||||||
if((p->length) < bufsize) bufsize = (p->length);
|
if((p->length) < bufsize) bufsize = (p->length);
|
||||||
memcpy(buf, (uint8_t *)(p->data + p->offset), bufsize);
|
memcpy(buf, (uint8_t *)(p->data + p->offset), bufsize);
|
||||||
packetbuf_set_attr(PACKETBUF_ATTR_LINK_QUALITY,p->lqi);
|
packetbuf_set_attr(PACKETBUF_ATTR_LINK_QUALITY,p->lqi);
|
||||||
|
packetbuf_set_attr(PACKETBUF_ATTR_TIMESTAMP,p->rx_time);
|
||||||
#if CONTIKI_MACA_DEBUG
|
#if CONTIKI_MACA_DEBUG
|
||||||
for( i = p->offset ; i < (bufsize + p->offset) ; i++) {
|
for( i = p->offset ; i < (bufsize + p->offset) ; i++) {
|
||||||
PRINTF(" %02x",p->data[i]);
|
PRINTF(" %02x",p->data[i]);
|
||||||
|
|
Loading…
Reference in a new issue