Skip to content

Commit

Permalink
Merge pull request #16405 from kaspar030/backport/2021.04/bug_nrf24l0…
Browse files Browse the repository at this point in the history
…1p_ng_set_address_on_p1

drivers/nrf24l01p_ng: bugfix netdev::set NETOPT_ADDRESS [backport 2021.04]
  • Loading branch information
kaspar030 authored Apr 28, 2021
2 parents 5a1338a + ed90ed1 commit 18ecf98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/nrf24l01p_ng/nrf24l01p_ng_netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,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: {
Expand Down

0 comments on commit 18ecf98

Please sign in to comment.