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);