mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
examples/default: print 16bit addresses
This commit is contained in:
parent
c16c2509e8
commit
6a7cee294f
@ -75,8 +75,8 @@ void *radio(void *arg)
|
||||
p = (ieee802154_packet_t*) m.content.ptr;
|
||||
printf("Got radio packet:\n");
|
||||
printf("\tLength:\t%u\n", p->length);
|
||||
printf("\tSrc:\t%u\n", p->frame.src_addr[0]);
|
||||
printf("\tDst:\t%u\n", p->frame.dest_addr[0]);
|
||||
printf("\tSrc:\t%u\n", (p->frame.src_addr[0])|(p->frame.src_addr[1]<<8));
|
||||
printf("\tDst:\t%u\n", (p->frame.dest_addr[0])|(p->frame.dest_addr[1]<<8));
|
||||
printf("\tLQI:\t%u\n", p->lqi);
|
||||
printf("\tRSSI:\t%u\n", p->rssi);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user