Run clang-format and enable CI check for it (#755)
* pre-commit: Update and enable clang-format check There is newer version from clang-format so use that. We do not yet want 18 as that is little bit too new. * Format some thing by hand which clang-format "breaks" Clang-format will format some things little bit off in some cases. Format some things by hand so we get cleaner end result. * Run clang-format with ``` pre-commit run --all-files clang-format ``` We have already in previously checked places where clang-format does not make good format and ignored those (hopefully most of the things). --------- Co-authored-by: Kari Argillander <kari.argillander@fidelix.com>
This commit is contained in:
@@ -359,8 +359,8 @@ static float Requested_Shed_Level_Value(struct object_data *pObject)
|
||||
* @param dest - destination data
|
||||
* @param src - source data
|
||||
*/
|
||||
static void Shed_Level_Copy(
|
||||
BACNET_SHED_LEVEL *dest, const BACNET_SHED_LEVEL *src)
|
||||
static void
|
||||
Shed_Level_Copy(BACNET_SHED_LEVEL *dest, const BACNET_SHED_LEVEL *src)
|
||||
{
|
||||
if (dest && src) {
|
||||
dest->type = src->type;
|
||||
@@ -446,7 +446,8 @@ static bool Able_To_Meet_Shed_Request(struct object_data *pObject)
|
||||
* @param object_index - object index in the list
|
||||
* @param bdatetime - current date and time
|
||||
*/
|
||||
void Load_Control_State_Machine(int object_index, const BACNET_DATE_TIME *bdatetime)
|
||||
void Load_Control_State_Machine(
|
||||
int object_index, const BACNET_DATE_TIME *bdatetime)
|
||||
{
|
||||
int diff = 0; /* used for datetime comparison */
|
||||
float amount;
|
||||
@@ -909,8 +910,8 @@ static int Load_Control_Shed_Level_Descriptions_Encode(
|
||||
* @param value [in] The value to encode
|
||||
* @return The length of the apdu encoded
|
||||
*/
|
||||
static int BACnet_Shed_Level_Encode(
|
||||
uint8_t *apdu, const BACNET_SHED_LEVEL *value)
|
||||
static int
|
||||
BACnet_Shed_Level_Encode(uint8_t *apdu, const BACNET_SHED_LEVEL *value)
|
||||
{
|
||||
int apdu_len = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user