nRF24 / RF24Mesh

OSI Layer 7 Mesh Networking for RF24Network & nrf24L01+ & nrf52x devices
http://nrf24.github.io/RF24Mesh
GNU General Public License v2.0
422 stars 153 forks source link

Clang format #213

Closed 2bndy5 closed 2 years ago

2bndy5 commented 2 years ago

Notes

Please also read description of nRF24/RF24#846 as there were a lot of single line conditions/loops that used curly brackets in this lib.

The MESH_CALLBACK macro had to be defined a separate line because of the single line conditional statement. Maybe there's a better way to define it on 1 line, but clang-format is rather rigid in its assessment.

github-actions[bot] commented 2 years ago

Memory usage change @ 5cc09671d4bd555e68557efdb93305a389e7c789

Board flash % RAM for global variables %
arduino:avr:nano 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:samd:mkrzero 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
Click for full report table Board|examples/RF24Mesh_Example
flash|%|examples/RF24Mesh_Example
RAM for global variables|%|examples/RF24Mesh_Example_Master_Statics
flash|%|examples/RF24Mesh_Example_Master_Statics
RAM for global variables|%|examples/RF24Mesh_Example_Master_To_Nodes
flash|%|examples/RF24Mesh_Example_Master_To_Nodes
RAM for global variables|%|examples/RF24Mesh_Example_Node2Node
flash|%|examples/RF24Mesh_Example_Node2Node
RAM for global variables|%|examples/RF24Mesh_Example_Node2NodeExtra
flash|%|examples/RF24Mesh_Example_Node2NodeExtra
RAM for global variables|%|examples/RF24Mesh_SerialConfig
flash|%|examples/RF24Mesh_SerialConfig
RAM for global variables|%|examples/RF24Mesh_Example_Master
flash|%|examples/RF24Mesh_Example_Master
RAM for global variables|% -|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|- arduino:avr:nano|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0 arduino:samd:mkrzero|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0|0|0.0
Click for full report CSV ``` Board,examples/RF24Mesh_Example
flash,%,examples/RF24Mesh_Example
RAM for global variables,%,examples/RF24Mesh_Example_Master_Statics
flash,%,examples/RF24Mesh_Example_Master_Statics
RAM for global variables,%,examples/RF24Mesh_Example_Master_To_Nodes
flash,%,examples/RF24Mesh_Example_Master_To_Nodes
RAM for global variables,%,examples/RF24Mesh_Example_Node2Node
flash,%,examples/RF24Mesh_Example_Node2Node
RAM for global variables,%,examples/RF24Mesh_Example_Node2NodeExtra
flash,%,examples/RF24Mesh_Example_Node2NodeExtra
RAM for global variables,%,examples/RF24Mesh_SerialConfig
flash,%,examples/RF24Mesh_SerialConfig
RAM for global variables,%,examples/RF24Mesh_Example_Master
flash,%,examples/RF24Mesh_Example_Master
RAM for global variables,% arduino:avr:nano,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0 arduino:samd:mkrzero,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0 ```