From b295eb7f40be17e13d703410640a8663f79fdd6b Mon Sep 17 00:00:00 2001 From: Brendan <2bndy5@gmail.com> Date: Fri, 16 Feb 2024 05:20:41 -0800 Subject: [PATCH] run clang-format v12.0.1 on unchanged some files --- RF24Network.cpp | 16 ++++++++++++---- RF24Network_config.h | 2 +- 2 files changed, 13 insertions(+), 5 deletions(-) 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