Skip to content
Snippets Groups Projects
Unverified Commit bd4592a0 authored by Koen Zandberg's avatar Koen Zandberg
Browse files

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
parent 357eed55
No related branches found
No related tags found
No related merge requests found
......@@ -114,7 +114,6 @@ uint16_t cc2420_get_pan(cc2420_t *dev)
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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment