mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #16393 from fabian18/bug_nrf24l01p_ng_set_address_on_p1
drivers/nrf24l01p_ng: bugfix netdev::set NETOPT_ADDRESS
This commit is contained in:
commit
8a7f3ab6fa
@ -614,7 +614,7 @@ static int _set(netdev_t *netdev, netopt_t opt, const void *val, size_t len)
|
||||
case NETOPT_ADDRESS: {
|
||||
/* common address length for all pipes */
|
||||
assert(len == NRF24L01P_NG_ADDR_WIDTH);
|
||||
int ret = nrf24l01p_ng_set_rx_address(dev, val, NRF24L01P_NG_P0);
|
||||
int ret = nrf24l01p_ng_set_rx_address(dev, val, NRF24L01P_NG_P1);
|
||||
return ret ? ret : (int)len;
|
||||
} break;
|
||||
case NETOPT_CHANNEL: {
|
||||
|
Loading…
Reference in New Issue
Block a user