drivers/at86rf2xx: use byteorder_htols()
same as 374d032b821290074bae76a78b2bd1c896527d1a
This commit is contained in:
parent
71f6b73251
commit
26bcaf94b5
@ -221,7 +221,7 @@ uint16_t at86rf2xx_get_pan(const at86rf2xx_t *dev)
|
|||||||
|
|
||||||
void at86rf2xx_set_pan(at86rf2xx_t *dev, uint16_t pan)
|
void at86rf2xx_set_pan(at86rf2xx_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]);
|
DEBUG("pan0: %u, pan1: %u\n", le_pan.u8[0], le_pan.u8[1]);
|
||||||
at86rf2xx_reg_write(dev, AT86RF2XX_REG__PAN_ID_0, le_pan.u8[0]);
|
at86rf2xx_reg_write(dev, AT86RF2XX_REG__PAN_ID_0, le_pan.u8[0]);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user