From 5268bc31c7585319067705df440692ff4771e091 Mon Sep 17 00:00:00 2001 From: Vasily Davydov Date: Mon, 10 Oct 2022 10:37:19 +0300 Subject: [PATCH] esp-vent-main: format with clang --- esp-vent-main/src/esp-vent-main.cpp | 32 ++++++++++++++++------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/esp-vent-main/src/esp-vent-main.cpp b/esp-vent-main/src/esp-vent-main.cpp index b2c28f1..ed0f3ef 100644 --- a/esp-vent-main/src/esp-vent-main.cpp +++ b/esp-vent-main/src/esp-vent-main.cpp @@ -1,14 +1,14 @@ /* =============================================================================== Name : main.c - Author : Vasily, Evgenii, Jaakko, Miisa + Author : Vasily, Evgenii, Jaakko, Miisa Version : Copyright : $(copyright) Description : main definition =============================================================================== */ -#if defined (__USE_LPCOPEN) +#if defined(__USE_LPCOPEN) #if defined(NO_BOARD_LIB) #include "chip.h" #else @@ -22,21 +22,25 @@ // TODO: insert other definitions and declarations here -int main(void) { +int +main (void) +{ -#if defined (__USE_LPCOPEN) - // Read clock settings and update SystemCoreClock variable - SystemCoreClockUpdate(); +#if defined(__USE_LPCOPEN) + // Read clock settings and update SystemCoreClock variable + SystemCoreClockUpdate (); #if !defined(NO_BOARD_LIB) - // Set up and initialize all required blocks and - // functions related to the board hardware - Board_Init(); - // Set the LED to the state of "On" - Board_LED_Set(0, true); + // Set up and initialize all required blocks and + // functions related to the board hardware + Board_Init (); + // Set the LED to the state of "On" + Board_LED_Set (0, true); #endif #endif - while(1) {} - - return 0 ; + while (1) + { + } + + return 0; }