mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
parent
26bcaf94b5
commit
7a7ebb1d5b
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user