From 793bfcb96dd39564d49308a4e4a899305b595d91 Mon Sep 17 00:00:00 2001 From: TMRh20 Date: Tue, 26 Sep 2023 11:12:34 -0600 Subject: [PATCH] Update RF24Network.cpp Co-authored-by: Brendan <2bndy5@gmail.com> --- RF24Network.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/RF24Network.cpp b/RF24Network.cpp index e30fc61b..b58e9bed 100644 --- a/RF24Network.cpp +++ b/RF24Network.cpp @@ -1181,7 +1181,14 @@ template uint64_t ESBNetwork::pipe_address(uint16_t node, uint8_t pipe) { - static uint8_t address_translation[] = {0xc3, 0x3c, 0x33, 0xce, 0x3e, 0xe3, 0xec, 0xee, 0xed}; + static uint8_t address_translation[] = {0xc3, 0x3c, 0x33, 0xce, 0x3e, 0xe3, 0xec +#if NUM_PIPES > 6 +, 0xee + #if NUM_PIPES > 7 +, 0xed + #endif +#endif +}; uint64_t result = 0xCCCCCCCCCCLL; uint8_t* out = reinterpret_cast(&result);