From 95e3c4020e8f8c0f5e4d2c319eb926a70a63ea8f Mon Sep 17 00:00:00 2001 From: TMRh20 Date: Tue, 3 Oct 2023 04:54:00 -0600 Subject: [PATCH] Fix for last commit Need to set rxPrefix in another spot --- src/nrf_to_nrf.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nrf_to_nrf.cpp b/src/nrf_to_nrf.cpp index 0b98e21..b5954ac 100644 --- a/src/nrf_to_nrf.cpp +++ b/src/nrf_to_nrf.cpp @@ -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; @@ -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;