From 7a7ebb1d5bd05b823cd1ed9678216ab73729e108 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Tue, 8 Dec 2020 13:40:57 +0100 Subject: [PATCH] drivers/mrf24j40: use byteorder_htols() same as 374d032b821290074bae76a78b2bd1c896527d1a --- drivers/mrf24j40/mrf24j40_getset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mrf24j40/mrf24j40_getset.c b/drivers/mrf24j40/mrf24j40_getset.c index ca785a201a..da9d73eeff 100644 --- a/drivers/mrf24j40/mrf24j40_getset.c +++ b/drivers/mrf24j40/mrf24j40_getset.c @@ -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]);