Skip to content

Commit

Permalink
Fix for last commit
Browse files Browse the repository at this point in the history
Need to set rxPrefix in another spot
  • Loading branch information
TMRh20 committed Oct 3, 2023
1 parent 8a30343 commit 95e3c40
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/nrf_to_nrf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,7 @@ void nrf_to_nrf::openReadingPipe(uint8_t child, uint64_t address)
NRF_RADIO->BASE1 = base;
NRF_RADIO->PREFIX0 &= ~(0xFF << (8 * child));
NRF_RADIO->PREFIX0 |= prefix << (8 * child);
rxPrefix = NRF_RADIO->PREFIX0;
}
else {
NRF_RADIO->BASE1 = base;
Expand Down Expand Up @@ -915,6 +916,7 @@ void nrf_to_nrf::openReadingPipe(uint8_t child, const uint8_t* address)
NRF_RADIO->BASE1 = base;
NRF_RADIO->PREFIX0 &= ~(0xFF << (8 * child));
NRF_RADIO->PREFIX0 |= prefix << (8 * child);
rxPrefix = NRF_RADIO->PREFIX0;
}
else {
NRF_RADIO->BASE1 = base;
Expand Down

0 comments on commit 95e3c40

Please sign in to comment.