From e639e2286152880898bd094caecd3b26a2b504a2 Mon Sep 17 00:00:00 2001 From: tueddy Date: Wed, 18 Dec 2024 14:37:31 +0100 Subject: [PATCH] clang --- src/Power.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Power.cpp b/src/Power.cpp index 819ed500..b1a5eae3 100644 --- a/src/Power.cpp +++ b/src/Power.cpp @@ -7,9 +7,9 @@ void Power_Init(void) { #ifdef POWER -#if (POWER >= 0 && POWER <= MAX_GPIO) + #if (POWER >= 0 && POWER <= MAX_GPIO) pinMode(POWER, OUTPUT); // Only necessary for GPIO. For port-expander it's done (previously) via Port_init() -#endif + #endif #endif } @@ -17,9 +17,9 @@ void Power_Init(void) { void Power_PeripheralOn(void) { #ifdef POWER Port_Write(POWER, POWER_ON, false); -#ifdef BUTTONS_LED + #ifdef BUTTONS_LED Port_Write(BUTTONS_LED, HIGH, false); -#endif + #endif delay(50); // Give peripherals some time to settle down #endif } @@ -28,8 +28,8 @@ void Power_PeripheralOn(void) { void Power_PeripheralOff(void) { #ifdef POWER Port_Write(POWER, POWER_OFF, false); -#ifdef BUTTONS_LED + #ifdef BUTTONS_LED Port_Write(BUTTONS_LED, LOW, false); -#endif + #endif #endif }