mrf24j40: Remove netdev access from set_pan
This write access is only required when a modification to the PAN ID happened directly via this function and not via a netdev::set operation. The only direct call was done in the reset function of the driver
This commit is contained in:
parent
5566f48f02
commit
2abf86afb4
@ -252,7 +252,6 @@ 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_btols(byteorder_htons(pan));
|
||||||
|
|
||||||
dev->netdev.pan = 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]);
|
||||||
mrf24j40_reg_write_short(dev, MRF24J40_REG_PANIDL, le_pan.u8[0]);
|
mrf24j40_reg_write_short(dev, MRF24J40_REG_PANIDL, le_pan.u8[0]);
|
||||||
mrf24j40_reg_write_short(dev, MRF24J40_REG_PANIDH, le_pan.u8[1]);
|
mrf24j40_reg_write_short(dev, MRF24J40_REG_PANIDH, le_pan.u8[1]);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user