1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 10:52:44 +01:00

cc2420: 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:
Koen Zandberg 2018-11-13 21:14:16 +01:00
parent 357eed551d
commit bd4592a06b
No known key found for this signature in database
GPG Key ID: 0895A893E6D2985B

View File

@ -114,7 +114,6 @@ uint16_t cc2420_get_pan(cc2420_t *dev)
void cc2420_set_pan(cc2420_t *dev, uint16_t pan) void cc2420_set_pan(cc2420_t *dev, uint16_t pan)
{ {
dev->netdev.pan = pan;
cc2420_ram_write(dev, CC2420_RAM_PANID, (uint8_t *)&pan, 2); cc2420_ram_write(dev, CC2420_RAM_PANID, (uint8_t *)&pan, 2);
} }