1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-27 23:41:18 +01:00

gnrc/gomach: use byteorder_htols()

This commit is contained in:
Benjamin Valentin 2020-12-08 16:30:17 +01:00
parent 129e9ae8a3
commit dd87737ca0

View File

@ -56,7 +56,7 @@ int _gnrc_gomach_transmit(gnrc_netif_t *netif, gnrc_pktsnip_t *pkt)
size_t src_len, dst_len;
uint8_t mhr[IEEE802154_MAX_HDR_LEN];
uint8_t flags = (uint8_t)(state->flags & NETDEV_IEEE802154_SEND_MASK);
le_uint16_t dev_pan = byteorder_btols(byteorder_htons(state->pan));
le_uint16_t dev_pan = byteorder_htols(state->pan);
flags |= IEEE802154_FCF_TYPE_DATA;
if (pkt == NULL) {