1
0
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:
Marian Buschsieweke 2021-04-26 20:11:38 +02:00 committed by GitHub
commit 8a7f3ab6fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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