1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/mrf24j40: use byteorder_htols()

same as 374d032b82
This commit is contained in:
Benjamin Valentin 2020-12-08 13:40:57 +01:00
parent 26bcaf94b5
commit 7a7ebb1d5b

View File

@ -260,7 +260,7 @@ uint16_t mrf24j40_get_pan(mrf24j40_t *dev)
void mrf24j40_set_pan(mrf24j40_t *dev, uint16_t pan)
{
le_uint16_t le_pan = byteorder_btols(byteorder_htons(pan));
le_uint16_t le_pan = byteorder_htols(pan);
DEBUG("pan0: %u, pan1: %u\n", le_pan.u8[0], le_pan.u8[1]);
mrf24j40_reg_write_short(dev, MRF24J40_REG_PANIDL, le_pan.u8[0]);