tests/ieee802154_submac: use byteorder_ltohs()

This commit is contained in:
Benjamin Valentin 2020-12-09 14:22:07 +01:00
parent 2ddfc46234
commit 7358ae9c2e

View File

@ -115,10 +115,10 @@ void recv(netdev_t *dev)
break;
}
printf("Dest. PAN: 0x%04x, Dest. addr.: ",
byteorder_ntohs(byteorder_ltobs(dst_pan)));
byteorder_ltohs(dst_pan));
_print_addr(dst, dst_len);
printf("\nSrc. PAN: 0x%04x, Src. addr.: ",
byteorder_ntohs(byteorder_ltobs(src_pan)));
byteorder_ltohs(src_pan));
_print_addr(src, src_len);
printf("\nSecurity: ");
if (buffer[0] & IEEE802154_FCF_SECURITY_EN) {