diff --git a/RF24Network.cpp b/RF24Network.cpp index b58e9bed..fafe1ce6 100644 --- a/RF24Network.cpp +++ b/RF24Network.cpp @@ -1181,14 +1181,22 @@ template uint64_t ESBNetwork::pipe_address(uint16_t node, uint8_t pipe) { - static uint8_t address_translation[] = {0xc3, 0x3c, 0x33, 0xce, 0x3e, 0xe3, 0xec + static uint8_t address_translation[] = { 0xc3, + 0x3c, + 0x33, + 0xce, + 0x3e, + 0xe3, + 0xec #if NUM_PIPES > 6 -, 0xee + , + 0xee #if NUM_PIPES > 7 -, 0xed + , + 0xed #endif #endif -}; + }; uint64_t result = 0xCCCCCCCCCCLL; uint8_t* out = reinterpret_cast(&result); diff --git a/RF24Network_config.h b/RF24Network_config.h index 5968a305..33513c86 100644 --- a/RF24Network_config.h +++ b/RF24Network_config.h @@ -81,7 +81,7 @@ /** Enable dynamic payloads - If using different types of nRF24L01 modules, some may be incompatible when using this feature **/ #define ENABLE_DYNAMIC_PAYLOADS #endif // DISABLE_DYNAMIC_PAYLOADS - + /** The number of 'pipes' available for addressing in the current device * Networks with NRF24L01 devices only have 6 pipes * NRF52x networks support up to 8 pipes