Skip to content

Commit 95e3c40

Browse files
committed
Fix for last commit
Need to set rxPrefix in another spot
1 parent 8a30343 commit 95e3c40

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/nrf_to_nrf.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -855,6 +855,7 @@ void nrf_to_nrf::openReadingPipe(uint8_t child, uint64_t address)
855855
NRF_RADIO->BASE1 = base;
856856
NRF_RADIO->PREFIX0 &= ~(0xFF << (8 * child));
857857
NRF_RADIO->PREFIX0 |= prefix << (8 * child);
858+
rxPrefix = NRF_RADIO->PREFIX0;
858859
}
859860
else {
860861
NRF_RADIO->BASE1 = base;
@@ -915,6 +916,7 @@ void nrf_to_nrf::openReadingPipe(uint8_t child, const uint8_t* address)
915916
NRF_RADIO->BASE1 = base;
916917
NRF_RADIO->PREFIX0 &= ~(0xFF << (8 * child));
917918
NRF_RADIO->PREFIX0 |= prefix << (8 * child);
919+
rxPrefix = NRF_RADIO->PREFIX0;
918920
}
919921
else {
920922
NRF_RADIO->BASE1 = base;

0 commit comments

Comments
 (0)