1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

drivers/nrf24l01p_ng: bugfix netdev set address

The NETOPT_ADDRESS option of the nrf24l01p_ng driver modified the address of pipe 0 but the main listening
address was designed to be the address of pipe 1.
This commit is contained in:
Fabian Hüßler 2021-04-26 11:56:33 +02:00
parent fed2c8e87e
commit 0eed306d94

View File

@ -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: {