at86rf2xx: 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
03653ecd39
commit
357eed551d
@ -222,7 +222,6 @@ 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_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]);
|
||||||
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]);
|
||||||
at86rf2xx_reg_write(dev, AT86RF2XX_REG__PAN_ID_1, le_pan.u8[1]);
|
at86rf2xx_reg_write(dev, AT86RF2XX_REG__PAN_ID_1, le_pan.u8[1]);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user