Add Clang-Format file and apply it

The format tries to maintain the previously used Libre Solar firmware coding
style as much as possible.

Applying the format fixed some issues and re-ordered some parts of the code.
This commit is contained in:
Martin Jäger
2022-01-26 13:56:31 +01:00
committed by Martin Jäger
parent 2359a96bbe
commit 5bdbecf19d
45 changed files with 1036 additions and 986 deletions
+2 -2
View File
@@ -9,12 +9,12 @@
#include <stdio.h>
#include "bat_charger.h"
#include "board.h"
#include "device_status.h"
#include "load.h"
#include "power_port.h"
#include "pwm_switch.h"
#include "thingset.h"
#include "board.h"
extern DcBus lv_bus;
extern PowerPort lv_terminal;
@@ -46,7 +46,7 @@ extern LoadOutput load;
extern LoadOutput usb_pwr;
#endif
extern ThingSet ts; // defined in data_objects.cpp
extern ThingSet ts; // defined in data_objects.cpp
extern uint32_t timestamp;